Skip to content

Commit 3e360ef

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Corrupt P0 in the irritator when testing SSVE
When building for streaming SVE the irritator for SVE skips updates of both P0 and FFR. While FFR is skipped since it might not be present there is no reason to skip corrupting P0 so switch to an instruction valid in streaming mode and move the ifdef. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20241107-arm64-fp-stress-irritator-v2-3-c4b9622e36ee@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 7dbd26d commit 3e360ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/arm64/fp/sve-test.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ function irritator_handler
302302
movi v0.8b, #1
303303
movi v9.16b, #2
304304
movi v31.8b, #3
305-
#ifndef SSVE
306305
// And P0
307-
rdffr p0.b
306+
ptrue p0.d
307+
#ifndef SSVE
308308
// And FFR
309309
wrffr p15.b
310310
#endif

0 commit comments

Comments
 (0)