diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 02:13:13 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 02:13:13 +0000 |
| commit | 00a620c61e785349ac4059d89f62707c8f0e2c2c (patch) | |
| tree | 99e3140558b35007479f3b7944c7c6054fb1b823 /llvm/test/CodeGen/X86/sibcall.ll | |
| parent | eb50ac5ccc65943ca0b20f469ce3a89464221542 (diff) | |
| download | bcm5719-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.ll | 31 |
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(...) |

