Skip to content

Commit

Permalink
Cygwin uses the msabi calling convention on x86_64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jon-turney committed Apr 6, 2017
1 parent 3194ab9 commit 205b375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test cases/common/126 llvm ir and assembly/square-x86_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test cases/common/135 generated assembly/square-x86_64.S.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 205b375

Please sign in to comment.