diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/tailcall2.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/tailcall2.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tailcall2.ll b/llvm/test/CodeGen/X86/tailcall2.ll new file mode 100644 index 00000000000..f1eb1529c12 --- /dev/null +++ b/llvm/test/CodeGen/X86/tailcall2.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=x86 -asm-verbose=false | FileCheck %s +; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s + +define void @bar(i32 %x) nounwind ssp { +entry: +; CHECK: bar: +; CHECK: jmp _foo + tail call void @foo() nounwind + ret void +} + +declare void @foo() |