summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-22 18:01:22 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-22 18:01:22 +0000
commit0162226db8b99306d598d7b790be7cc938bb689e (patch)
treebe010a2447ca5e3ccf635268ffc1c31b33aef08d /test/CodeGen/X86
parent92ee08fbc242efb0a6d8e862fc7cb5fc0cedfd8e (diff)
downloadllvm-0162226db8b99306d598d7b790be7cc938bb689e.tar.gz
llvm-0162226db8b99306d598d7b790be7cc938bb689e.tar.bz2
llvm-0162226db8b99306d598d7b790be7cc938bb689e.tar.xz
Merging r195439:
------------------------------------------------------------------------ r195439 | kcc | 2013-11-22 02:30:39 -0800 (Fri, 22 Nov 2013) | 3 lines Revert r195318 as it causes miscompilation (PR18029) ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/tail-call-got.ll6
-rw-r--r--test/CodeGen/X86/tailcallpic2.ll4
2 files changed, 6 insertions, 4 deletions
diff --git a/test/CodeGen/X86/tail-call-got.ll b/test/CodeGen/X86/tail-call-got.ll
index bdfdeb5987..84d561dcd8 100644
--- a/test/CodeGen/X86/tail-call-got.ll
+++ b/test/CodeGen/X86/tail-call-got.ll
@@ -5,7 +5,8 @@ target triple = "i386-unknown-freebsd9.0"
define double @test1(double %x) nounwind readnone {
; CHECK-LABEL: test1:
-; CHECK: calll foo@PLT
+; CHECK: movl foo@GOT
+; CHECK-NEXT: jmpl
%1 = tail call double @foo(double %x) nounwind readnone
ret double %1
}
@@ -14,7 +15,8 @@ declare double @foo(double) readnone
define double @test2(double %x) nounwind readnone {
; CHECK-LABEL: test2:
-; CHECK: calll sin@PLT
+; CHECK: movl sin@GOT
+; CHECK-NEXT: jmpl
%1 = tail call double @sin(double %x) nounwind readnone
ret double %1
}
diff --git a/test/CodeGen/X86/tailcallpic2.ll b/test/CodeGen/X86/tailcallpic2.ll
index c35cee3a98..1b6bdb7698 100644
--- a/test/CodeGen/X86/tailcallpic2.ll
+++ b/test/CodeGen/X86/tailcallpic2.ll
@@ -9,7 +9,7 @@ define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
entry:
%tmp11 = tail call fastcc i32 @tailcallee( i32 %in1, i32 %in2, i32 %in1, i32 %in2 ) ; <i32> [#uses=1]
ret i32 %tmp11
-; Note that this call via PLT could be further optimized into a direct call (no GOT, no PLT):
-; CHECK: calll tailcallee@PLT
+; CHECK: movl tailcallee@GOT
+; CHECK: jmpl
}