summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/half.ll
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2015-11-23 22:17:44 +0000
committerAndy Ayers <andya@microsoft.com>2015-11-23 22:17:44 +0000
commit9f7501896e79169d10b2b05271f0678738fe3bdb (patch)
tree7e8841356c74599abcf531b6b10bdc27abc883f2 /llvm/test/CodeGen/X86/half.ll
parent798f11cfb76dea68d2cda43e1623904c19d0bc61 (diff)
downloadbcm5719-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.ll4
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]+]]
OpenPOWER on IntegriCloud