Skip to content

Commit 94f23ac

Browse files
brooniewilldeacon
authored andcommitted
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: 09d2e95 ("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>
1 parent fcb0b51 commit 94f23ac

File tree

1 file changed

+2
-1
lines changed
  • tools/testing/selftests/arm64/abi

1 file changed

+2
-1
lines changed

tools/testing/selftests/arm64/abi/hwcap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ static void atomics_sigill(void)
4848

4949
static void crc32_sigill(void)
5050
{
51-
asm volatile("crc32w w0, w0, w1");
51+
/* CRC32W W0, W0, W1 */
52+
asm volatile(".inst 0x1ac14800" : : : );
5253
}
5354

5455
static void cssc_sigill(void)

0 commit comments

Comments
 (0)