diff options
| author | Andy Ayers <andya@microsoft.com> | 2015-11-23 22:17:44 +0000 |
|---|---|---|
| committer | Andy Ayers <andya@microsoft.com> | 2015-11-23 22:17:44 +0000 |
| commit | 9f7501896e79169d10b2b05271f0678738fe3bdb (patch) | |
| tree | 7e8841356c74599abcf531b6b10bdc27abc883f2 /llvm/test/CodeGen/X86/half.ll | |
| parent | 798f11cfb76dea68d2cda43e1623904c19d0bc61 (diff) | |
| download | bcm5719-llvm-9f7501896e79169d10b2b05271f0678738fe3bdb.tar.gz bcm5719-llvm-9f7501896e79169d10b2b05271f0678738fe3bdb.zip | |
findDeadCallerSavedReg needs to pay attention to calling convention
Caller saved regs differ between SysV and Win64. Use the tail call available set to scavenge from.
Refactor register info to create new helper to get at tail call GPRs. Added a new test case for windows. Fixed up a number of X64 tests since now RCX is preferred over RDX on SysV.
Differential Revision: http://reviews.llvm.org/D14878
llvm-svn: 253927
Diffstat (limited to 'llvm/test/CodeGen/X86/half.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/half.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/half.ll b/llvm/test/CodeGen/X86/half.ll index 8a726370f19..3b2518e28f5 100644 --- a/llvm/test/CodeGen/X86/half.ll +++ b/llvm/test/CodeGen/X86/half.ll @@ -77,7 +77,7 @@ define i64 @test_fptosi_i64(half* %p) #0 { ; CHECK-LIBCALL-NEXT: movzwl (%rdi), %edi ; CHECK-LIBCALL-NEXT: callq __gnu_h2f_ieee ; CHECK-LIBCALL-NEXT: cvttss2si %xmm0, %rax -; CHECK-LIBCALL-NEXT: popq %rdx +; CHECK-LIBCALL-NEXT: popq %rcx ; CHECK-LIBCALL-NEXT: retq ; CHECK-F16C-NEXT: movswl (%rdi), [[REG0:%[a-z0-9]+]] @@ -127,7 +127,7 @@ define i64 @test_fptoui_i64(half* %p) #0 { ; CHECK-LIBCALL-NEXT: cvttss2si %xmm0, [[REG5:%[a-z0-9]+]] ; CHECK-LIBCALL-NEXT: ucomiss [[REG1]], %xmm0 ; CHECK-LIBCALL-NEXT: cmovaeq [[REG4]], [[REG5]] -; CHECK-LIBCALL-NEXT: popq %rdx +; CHECK-LIBCALL-NEXT: popq %rcx ; CHECK-LIBCALL-NEXT: retq ; CHECK-F16C-NEXT: movswl (%rdi), [[REG0:%[a-z0-9]+]] |

