aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormimi89999 <michel@lebihan.pl>2020-11-29 16:00:33 +0100
committerNirbheek Chauhan <nirbheek@centricular.com>2021-01-06 14:53:07 +0530
commit44d14c972baf7df566b4afbea2426a4d6dbd2d10 (patch)
tree866e1a144ecbc2caa60aa226346a19726691eee4
parent3dc0b49f9f92d02d05a4065a52bb6c4a71b87127 (diff)
downloadmeson-44d14c972baf7df566b4afbea2426a4d6dbd2d10.zip
meson-44d14c972baf7df566b4afbea2426a4d6dbd2d10.tar.gz
meson-44d14c972baf7df566b4afbea2426a4d6dbd2d10.tar.bz2
Add aarch64 assembly test
-rw-r--r--test cases/common/122 llvm ir and assembly/square-aarch64.S11
1 files changed, 10 insertions, 1 deletions
diff --git a/test cases/common/122 llvm ir and assembly/square-aarch64.S b/test cases/common/122 llvm ir and assembly/square-aarch64.S
index ebe74e7..02f1a12 100644
--- a/test cases/common/122 llvm ir and assembly/square-aarch64.S
+++ b/test cases/common/122 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