From 631a7b5a2a8ffa31d0d126608e79841be02ecfea Mon Sep 17 00:00:00 2001 From: mimi89999 Date: Sun, 29 Nov 2020 16:00:33 +0100 Subject: [PATCH] Add aarch64 assembly test --- .../common/119 llvm ir and assembly/square-aarch64.S | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ebe74e7de..02f1a1299 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