summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/tailcall-void.ll
diff options
context:
space:
mode:
authorArnold Schwaighofer <arnold.schwaighofer@gmail.com>2009-03-28 12:36:29 +0000
committerArnold Schwaighofer <arnold.schwaighofer@gmail.com>2009-03-28 12:36:29 +0000
commite622cbf385f6d1f55f85c3cf23cf4f843deb132f (patch)
tree3c2881a12b82704972b9bb2e71851ad7ba0943b2 /llvm/test/CodeGen/X86/tailcall-void.ll
parentc619aaf122a9ae59f82f583e65b4a5a836f3d9e4 (diff)
downloadbcm5719-llvm-e622cbf385f6d1f55f85c3cf23cf4f843deb132f.tar.gz
bcm5719-llvm-e622cbf385f6d1f55f85c3cf23cf4f843deb132f.zip
Make check in CheckTailCallReturnConstraints for ignorable instructions between
a CALL and a RET node more generic. Add a test for tail calls with a void return. llvm-svn: 67943
Diffstat (limited to 'llvm/test/CodeGen/X86/tailcall-void.ll')
-rw-r--r--llvm/test/CodeGen/X86/tailcall-void.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tailcall-void.ll b/llvm/test/CodeGen/X86/tailcall-void.ll
new file mode 100644
index 00000000000..27b2a2856ad
--- /dev/null
+++ b/llvm/test/CodeGen/X86/tailcall-void.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
+define fastcc void @i1test(i32, i32, i32, i32) {
+ entry:
+ tail call fastcc void @i1test( i32 %0, i32 %1, i32 %2, i32 %3)
+ ret void
+}
OpenPOWER on IntegriCloud