Cygwin uses the msabi calling convention on x86_64

Fix test cases/common/126 and 135 on Cygwin/x86_64

Cygwin also uses the msabi calling convention on x86_64, not the sysvabi
calling convention.
pull/1567/head
Jon Turney 8 years ago
parent 3194ab9420
commit 205b375723
  1. 4
      test cases/common/126 llvm ir and assembly/square-x86_64.S
  2. 4
      test cases/common/135 generated assembly/square-x86_64.S.in

@ -19,12 +19,12 @@ END
.text
.globl SYMBOL_NAME(square_unsigned)
# ifdef _WIN32 /* MinGW */
# if defined(_WIN32) || defined(__CYGWIN__) /* msabi */
SYMBOL_NAME(square_unsigned):
imull %ecx, %ecx
movl %ecx, %eax
retq
# else /* Linux and OS X */
# else /* sysvabi */
SYMBOL_NAME(square_unsigned):
imull %edi, %edi
movl %edi, %eax

@ -23,12 +23,12 @@ END
.type square_unsigned,@function
# endif
# ifdef _WIN32 /* MinGW */
# if defined(_WIN32) || defined(__CYGWIN__) /* msabi */
SYMBOL_NAME(square_unsigned):
imull %ecx, %ecx
movl %ecx, %eax
retq
# else /* Linux and OS X */
# else /* sysvabi */
SYMBOL_NAME(square_unsigned):
imull %edi, %edi
movl %edi, %eax

Loading…
Cancel
Save