summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-11-22 10:30:39 +0000
committerKostya Serebryany <kcc@google.com>2013-11-22 10:30:39 +0000
commit4007009815f226b47a2aaf2a8790ed2062458822 (patch)
tree0be82117da1382b92bc6a79ad83cd1dee289f9cd /llvm/test
parent7fa2eb9f49e6dbf8317405de06d418ae7e77f267 (diff)
downloadbcm5719-llvm-4007009815f226b47a2aaf2a8790ed2062458822.tar.gz
bcm5719-llvm-4007009815f226b47a2aaf2a8790ed2062458822.zip
Revert r195318 as it causes miscompilation (PR18029)
llvm-svn: 195439
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/tail-call-got.ll6
-rw-r--r--llvm/test/CodeGen/X86/tailcallpic2.ll4
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/tail-call-got.ll b/llvm/test/CodeGen/X86/tail-call-got.ll
index bdfdeb59870..84d561dcd8c 100644
--- a/llvm/test/CodeGen/X86/tail-call-got.ll
+++ b/llvm/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/llvm/test/CodeGen/X86/tailcallpic2.ll b/llvm/test/CodeGen/X86/tailcallpic2.ll
index c35cee3a987..1b6bdb76986 100644
--- a/llvm/test/CodeGen/X86/tailcallpic2.ll
+++ b/llvm/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
}
OpenPOWER on IntegriCloud