]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kselftest/arm64: Corrupt P0 in the irritator when testing SSVE
authorMark Brown <broonie@kernel.org>
Thu, 7 Nov 2024 01:39:22 +0000 (01:39 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 12 Nov 2024 14:52:20 +0000 (14:52 +0000)
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>
tools/testing/selftests/arm64/fp/sve-test.S

index f1fb9745c681786f686f1fafcb7e1154f3c8e1a3..28eb8b5cc2d2e6f51818f29db037e55c9b838a41 100644 (file)
@@ -302,9 +302,9 @@ function irritator_handler
        movi    v0.8b, #1
        movi    v9.16b, #2
        movi    v31.8b, #3
-#ifndef SSVE
        // And P0
-       rdffr   p0.b
+       ptrue   p0.d
+#ifndef SSVE
        // And FFR
        wrffr   p15.b
 #endif