diff options
Diffstat (limited to 'meson/test cases/common/118 llvm ir and assembly/square-aarch64.S')
-rw-r--r-- | meson/test cases/common/118 llvm ir and assembly/square-aarch64.S | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meson/test cases/common/118 llvm ir and assembly/square-aarch64.S b/meson/test cases/common/118 llvm ir and assembly/square-aarch64.S new file mode 100644 index 000000000..02f1a1299 --- /dev/null +++ b/meson/test cases/common/118 llvm ir and assembly/square-aarch64.S @@ -0,0 +1,29 @@ +#include "symbol-underscore.h" + +#ifdef _MSC_VER + + AREA _TEXT, ARM64, CODE, READONLY + + EXPORT SYMBOL_NAME(square_unsigned) +SYMBOL_NAME(square_unsigned) PROC + mul x1, x0, x0 + mov x0, x1 + ret +SYMBOL_NAME(square_unsigned) ENDP + + END + +#else + +.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 |