test cases/common/118 llvm ir and assembly/square-aarch64.S
raw| 1 | #include "symbol-underscore.h" |
| 2 | |
| 3 | #ifdef _MSC_VER |
| 4 | |
| 5 | AREA _TEXT, ARM64, CODE, READONLY |
| 6 | |
| 7 | EXPORT SYMBOL_NAME(square_unsigned) |
| 8 | SYMBOL_NAME(square_unsigned) PROC |
| 9 | mul x1, x0, x0 |
| 10 | mov x0, x1 |
| 11 | ret |
| 12 | SYMBOL_NAME(square_unsigned) ENDP |
| 13 | |
| 14 | END |
| 15 | |
| 16 | #else |
| 17 | |
| 18 | .text |
| 19 | .globl SYMBOL_NAME(square_unsigned) |
| 20 | # ifdef __linux__ |
| 21 | .type square_unsigned, %function |
| 22 | #endif |
| 23 | |
| 24 | SYMBOL_NAME(square_unsigned): |
| 25 | mul x1, x0, x0 |
| 26 | mov x0, x1 |
| 27 | ret |
| 28 | |
| 29 | #endif |