]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/arm64: Implement cmpbr_sigill() to hwcap test
authorYifan Wu <wuyifan50@huawei.com>
Thu, 5 Mar 2026 01:36:38 +0000 (09:36 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 14 Mar 2026 16:58:16 +0000 (16:58 +0000)
commit74cd4e0e5399480e3fab2cd6a6cbdb17f673c335
treec82da5d65bda40d0b6223823e346b9ab19595018
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
selftests/arm64: Implement cmpbr_sigill() to hwcap test

The function executes a CBEQ instruction which is valid if the CPU
supports the CMPBR extension. The CBEQ branches to skip the following
UDF instruction, and no SIGILL is generated. Otherwise, it will
generate a SIGILL.

Signed-off-by: Yifan Wu <wuyifan50@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/hwcap.c