]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kselftest/arm64: Fix encoding for SVE B16B16 test
authorMark Brown <broonie@kernel.org>
Mon, 28 Oct 2024 20:22:31 +0000 (20:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:52:45 +0000 (13:52 +0100)
[ Upstream commit 69c0d824779843b51ca2339b2163db4d3b40c54c ]

The test for SVE_B16B16 had a cut'n'paste of a SME instruction, fix it with
a relevant SVE instruction.

Fixes: 44d10c27bd75 ("kselftest/arm64: Add 2023 DPISA hwcap test coverage")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241028-arm64-b16b16-test-v1-1-59a4a7449bdf@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c

index 41c245478e412d233d4e49c20b60191c7de7e1f7..14e146a23879a73f9f7f4872cc4e899c308cc65b 100644 (file)
@@ -355,8 +355,8 @@ static void sveaes_sigill(void)
 
 static void sveb16b16_sigill(void)
 {
-       /* BFADD ZA.H[W0, 0], {Z0.H-Z1.H} */
-       asm volatile(".inst 0xC1E41C00" : : : );
+       /* BFADD Z0.H, Z0.H, Z0.H */
+       asm volatile(".inst 0x65000000" : : : );
 }
 
 static void svepmull_sigill(void)