aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/arm64/fp/assembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/arm64/fp/assembler.h')
-rw-r--r--tools/testing/selftests/arm64/fp/assembler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/fp/assembler.h b/tools/testing/selftests/arm64/fp/assembler.h
index 8944f2189206..90bd433d2665 100644
--- a/tools/testing/selftests/arm64/fp/assembler.h
+++ b/tools/testing/selftests/arm64/fp/assembler.h
@@ -54,4 +54,15 @@ endfunction
.purgem \name\()_entry
.endm
+// Utility macro to print a literal string
+// Clobbers x0-x4,x8
+.macro puts string
+ .pushsection .rodata.str1.1, "aMS", 1
+.L__puts_literal\@: .string "\string"
+ .popsection
+
+ ldr x0, =.L__puts_literal\@
+ bl puts
+.endm
+
#endif /* ! ASSEMBLER_H */