aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit11ff97801b93af0d36244fd5877b1552cdfa0a86 (patch)
tree943fc04f501a9c9f37e4b825b4ad45f74f572b0f /test/CodeGen/X86/tailcall-void.ll
parentbc14dd30a8e03e28c9d28ab4c5b6e52e8d7c8d26 (diff)
downloadexternal_llvm-11ff97801b93af0d36244fd5877b1552cdfa0a86.zip
external_llvm-11ff97801b93af0d36244fd5877b1552cdfa0a86.tar.gz
external_llvm-11ff97801b93af0d36244fd5877b1552cdfa0a86.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcall-void.ll')
-rw-r--r--test/CodeGen/X86/tailcall-void.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tailcall-void.ll b/test/CodeGen/X86/tailcall-void.ll
new file mode 100644
index 0000000..27b2a28
--- /dev/null
+++ b/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
+}