Skip to content

Commit ae465d9

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Fix build with stricter assemblers
While some assemblers (including the LLVM assembler I mostly use) will happily accept SMSTART as an instruction by default others, specifically gas, require that any architecture extensions be explicitly enabled. The assembler SME test programs use manually encoded helpers for the new instructions but no SMSTART helper is defined, only SM and ZA specific variants. Unfortunately the irritators that were just added use plain SMSTART so on stricter assemblers these fail to build: za-test.S:160: Error: selected processor does not support `smstart' Switch to using SMSTART ZA via the manually encoded smstart_za macro we already have defined. Fixes: d65f27d ("kselftest/arm64: Implement irritators for ZA and ZT") Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent ead1c35 commit ae465d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function irritator_handler
157157

158158
// This will reset ZA to all bits 0
159159
smstop
160-
smstart
160+
smstart_za
161161

162162
ret
163163
endfunction

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function irritator_handler
126126

127127
// This will reset ZT to all bits 0
128128
smstop
129-
smstart
129+
smstart_za
130130

131131
ret
132132
endfunction

0 commit comments

Comments
 (0)