kselftest/arm64: Remove unused ADRs from irritator handlers
authorMark Brown <broonie@kernel.org>
Thu, 7 Nov 2024 01:39:21 +0000 (01:39 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 7 Nov 2024 18:02:13 +0000 (18:02 +0000)
The irritator handlers for the fp-stress test programs all use ADR to load
an address into x0 which is then not referenced. Remove these ADRs as they
just cause confusion.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241107-arm64-fp-stress-irritator-v2-2-c4b9622e36ee@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/fpsimd-test.S
tools/testing/selftests/arm64/fp/sve-test.S
tools/testing/selftests/arm64/fp/za-test.S
tools/testing/selftests/arm64/fp/zt-test.S

index bdfb7cf..9977ffd 100644 (file)
@@ -142,7 +142,6 @@ function irritator_handler
        str     x0, [x2, #ucontext_regs + 8 * 23]
 
        // Corrupt some random V-regs
-       adr     x0, .text + (irritator_handler - .text) / 16 * 16
        movi    v0.8b, #7
        movi    v9.16b, #9
        movi    v31.8b, #31
index e3c0d58..f1fb974 100644 (file)
@@ -299,7 +299,6 @@ function irritator_handler
        str     x0, [x2, #ucontext_regs + 8 * 23]
 
        // Corrupt some random Z-regs
-       adr     x0, .text + (irritator_handler - .text) / 16 * 16
        movi    v0.8b, #1
        movi    v9.16b, #2
        movi    v31.8b, #3
index 095b455..1ee0ec3 100644 (file)
@@ -158,7 +158,6 @@ function irritator_handler
 
        // Corrupt some random ZA data
 #if 0
-       adr     x0, .text + (irritator_handler - .text) / 16 * 16
        movi    v0.8b, #1
        movi    v9.16b, #2
        movi    v31.8b, #3
index b5c81e8..ade9c98 100644 (file)
@@ -127,7 +127,6 @@ function irritator_handler
 
        // Corrupt some random ZT data
 #if 0
-       adr     x0, .text + (irritator_handler - .text) / 16 * 16
        movi    v0.8b, #1
        movi    v9.16b, #2
        movi    v31.8b, #3