summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/sibcall.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-26 02:13:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-26 02:13:13 +0000
commit00a620c61e785349ac4059d89f62707c8f0e2c2c (patch)
tree99e3140558b35007479f3b7944c7c6054fb1b823 /llvm/test/CodeGen/X86/sibcall.ll
parenteb50ac5ccc65943ca0b20f469ce3a89464221542 (diff)
downloadbcm5719-llvm-00a620c61e785349ac4059d89f62707c8f0e2c2c.tar.gz
bcm5719-llvm-00a620c61e785349ac4059d89f62707c8f0e2c2c.zip
Allow trivial sibcall of vararg callee when no arguments are being passed.
llvm-svn: 99598
Diffstat (limited to 'llvm/test/CodeGen/X86/sibcall.ll')
-rw-r--r--llvm/test/CodeGen/X86/sibcall.ll31
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/sibcall.ll b/llvm/test/CodeGen/X86/sibcall.ll
index ce35b454518..541e7506b8b 100644
--- a/llvm/test/CodeGen/X86/sibcall.ll
+++ b/llvm/test/CodeGen/X86/sibcall.ll
@@ -271,3 +271,34 @@ entry:
}
declare double @bar4()
+
+; rdar://6283267
+define void @t17() nounwind ssp {
+entry:
+; 32: t17:
+; 32: jmp {{_?}}bar5
+
+; 64: t17:
+; 64: xorb %al, %al
+; 64: jmp {{_?}}bar5
+ tail call void (...)* @bar5() nounwind
+ ret void
+}
+
+declare void @bar5(...)
+
+; rdar://7774847
+define void @t18() nounwind ssp {
+entry:
+; 32: t18:
+; 32: call {{_?}}bar6
+; 32: fstp %st(0)
+
+; 64: t18:
+; 64: xorb %al, %al
+; 64: jmp {{_?}}bar6
+ %0 = tail call double (...)* @bar6() nounwind
+ ret void
+}
+
+declare double @bar6(...)
OpenPOWER on IntegriCloud