aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormimi89999 <michel@lebihan.pl>2020-11-29 16:00:33 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-29 23:50:23 +0200
commit631a7b5a2a8ffa31d0d126608e79841be02ecfea (patch)
treecd80ee4b31137ffa3601ad375a2fbc6eb0652ee3
parent0fa808f7066d20047c0576da064bcc105053c401 (diff)
downloadmeson-631a7b5a2a8ffa31d0d126608e79841be02ecfea.zip
meson-631a7b5a2a8ffa31d0d126608e79841be02ecfea.tar.gz
meson-631a7b5a2a8ffa31d0d126608e79841be02ecfea.tar.bz2
Add aarch64 assembly test
-rw-r--r--test cases/common/119 llvm ir and assembly/square-aarch64.S11
1 files changed, 10 insertions, 1 deletions
diff --git a/test cases/common/119 llvm ir and assembly/square-aarch64.S b/test cases/common/119 llvm ir and assembly/square-aarch64.S
index ebe74e7..02f1a12 100644
--- a/test cases/common/119 llvm ir and assembly/square-aarch64.S
+++ b/test cases/common/119 llvm ir and assembly/square-aarch64.S
@@ -15,6 +15,15 @@ SYMBOL_NAME(square_unsigned) ENDP
#else
-#error gas syntax assembly for this test needs to be written
+.text
+.globl SYMBOL_NAME(square_unsigned)
+# ifdef __linux__
+.type square_unsigned, %function
+#endif
+
+SYMBOL_NAME(square_unsigned):
+ mul x1, x0, x0
+ mov x0, x1
+ ret
#endif