projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
672dbf9
)
kselftest/arm64: add float-point feature to hwcap test
author
Zeng Heng
<zengheng4@huawei.com>
Tue, 8 Aug 2023 13:40:32 +0000
(21:40 +0800)
committer
Will Deacon
<will@kernel.org>
Fri, 11 Aug 2023 11:24:16 +0000
(12:24 +0100)
Add the FP feature check in the set of hwcap tests.
Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20230808134036.668954-2-zengheng4@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/arm64/abi/hwcap.c
b/tools/testing/selftests/arm64/abi/hwcap.c
index 6a0adf916028f631c614a67540292e6dbf6a9450..ec247587f2bf7593097d1368c72c603f42261994 100644
(file)
--- a/
tools/testing/selftests/arm64/abi/hwcap.c
+++ b/
tools/testing/selftests/arm64/abi/hwcap.c
@@
-39,6
+39,11
@@
static void cssc_sigill(void)
asm volatile(".inst 0xdac01c00" : : : "x0");
}
+static void fp_sigill(void)
+{
+ asm volatile("fmov s0, #1");
+}
+
static void ilrcpc_sigill(void)
{
/* LDAPUR W0, [SP, #8] */
@@
-235,6
+240,13
@@
static const struct hwcap_data {
.cpuinfo = "cssc",
.sigill_fn = cssc_sigill,
},
+ {
+ .name = "FP",
+ .at_hwcap = AT_HWCAP,
+ .hwcap_bit = HWCAP_FP,
+ .cpuinfo = "fp",
+ .sigill_fn = fp_sigill,
+ },
{
.name = "LRCPC",
.at_hwcap = AT_HWCAP,