Skip to content
/ linux Public

Commit 1cf2298

Browse files
Yifan Wugregkh
authored andcommitted
selftest/arm64: Fix sve2p1_sigill() to hwcap test
[ Upstream commit d87c828 ] The FEAT_SVE2p1 is indicated by ID_AA64ZFR0_EL1.SVEver. However, the BFADD requires the FEAT_SVE_B16B16, which is indicated by ID_AA64ZFR0_EL1.B16B16. This could cause the test to incorrectly fail on a CPU that supports FEAT_SVE2.1 but not FEAT_SVE_B16B16. LD1Q Gather load quadwords which is decoded from SVE encodings and implied by FEAT_SVE2p1. Fixes: c5195b0 ("kselftest/arm64: Add SVE 2.1 to hwcap test") Signed-off-by: Yifan Wu <wuyifan50@huawei.com> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c7c790a commit 1cf2298

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ static void sve2_sigill(void)
349349

350350
static void sve2p1_sigill(void)
351351
{
352-
/* BFADD Z0.H, Z0.H, Z0.H */
353-
asm volatile(".inst 0x65000000" : : : "z0");
352+
/* LD1Q {Z0.Q}, P0/Z, [Z0.D, X0] */
353+
asm volatile(".inst 0xC400A000" : : : "z0");
354354
}
355355

356356
static void sveaes_sigill(void)

0 commit comments

Comments
 (0)