summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/arm64
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-08-16 21:39:32 +0300
committerWill Deacon <will@kernel.org>2023-08-18 19:07:44 +0300
commit94f23ac36f8b3c2140b00d78131c8df41cd9ac5d (patch)
treeb8d93d33b41cdb29032845ce559df567be859cc9 /tools/testing/selftests/arm64
parentfcb0b51a5dca1f69f408dfe5fd970cf167d41538 (diff)
downloadlinux-94f23ac36f8b3c2140b00d78131c8df41cd9ac5d.tar.xz
kselftest/arm64: Fix hwcaps selftest build
The hwcaps selftest currently relies on the assembler being able to assemble the crc32w instruction but this is not in the base v8.0 so is not accepted by the standard GCC configurations used by many distributions. Switch to manually encoding to fix the build. Fixes: 09d2e95a04ad ("kselftest/arm64: add crc32 feature to hwcap test") Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230816-arm64-fix-crc32-build-v1-1-40165c1290f2@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/testing/selftests/arm64')
-rw-r--r--tools/testing/selftests/arm64/abi/hwcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/arm64/abi/hwcap.c b/tools/testing/selftests/arm64/abi/hwcap.c
index fe844b825a1e..0593192c0753 100644
--- a/tools/testing/selftests/arm64/abi/hwcap.c
+++ b/tools/testing/selftests/arm64/abi/hwcap.c
@@ -48,7 +48,8 @@ static void atomics_sigill(void)
static void crc32_sigill(void)
{
- asm volatile("crc32w w0, w0, w1");
+ /* CRC32W W0, W0, W1 */
+ asm volatile(".inst 0x1ac14800" : : : );
}
static void cssc_sigill(void)