diff options
Diffstat (limited to 'test/CodeGen/X86/tailcall-structret.ll')
-rw-r--r-- | test/CodeGen/X86/tailcall-structret.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tailcall-structret.ll b/test/CodeGen/X86/tailcall-structret.ll new file mode 100644 index 0000000000..e94d7d8bef --- /dev/null +++ b/test/CodeGen/X86/tailcall-structret.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL +define fastcc { { i8*, i8* }*, i8*} @init({ { i8*, i8* }*, i8*}, i32) { +entry: + %2 = tail call fastcc { { i8*, i8* }*, i8* } @init({ { i8*, i8*}*, i8*} %0, i32 %1) + ret { { i8*, i8* }*, i8*} %2 +} |