Debian Codegraph @

vendored-meson/meson/test cases/common/127 generated assembly/square-x86_64.S.in

raw
1 #include "symbol-underscore.h"
2
3 #if defined(_MSC_VER) && !defined(__clang__) /* MSVC on Windows */
4
5 PUBLIC SYMBOL_NAME(square_unsigned)
6 _TEXT SEGMENT
7
8 SYMBOL_NAME(square_unsigned) PROC
9 mov eax, ecx
10 imul eax, eax
11 ret
12 SYMBOL_NAME(square_unsigned) ENDP
13
14 _TEXT ENDS
15 END
16
17 #else
18
19 .text
20 .globl SYMBOL_NAME(square_unsigned)
21 /* Only supported with GAS */
22 # if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun)
23 .type square_unsigned,@function
24 # endif
25
26 # if defined(_WIN32) || defined(__CYGWIN__) /* msabi */
27 SYMBOL_NAME(square_unsigned):
28 imull %ecx, %ecx
29 movl %ecx, %eax
30 retq
31 # else /* sysvabi */
32 SYMBOL_NAME(square_unsigned):
33 imull %edi, %edi
34 movl %edi, %eax
35 retq
36 # endif
37
38 #endif