merge some tests.

llvm-svn: 157795
This commit is contained in:
Chris Lattner 2012-06-01 05:00:54 +00:00
parent 39d2bf08f8
commit f4a7be0c55
3 changed files with 13 additions and 13 deletions

View File

@ -1,6 +0,0 @@
; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL
define fastcc i1 @i1test(i32, i32, i32, i32) {
entry:
%4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3)
ret i1 %4
}

View File

@ -1,6 +0,0 @@
; RUN: llc < %s -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
}

View File

@ -1,4 +1,4 @@
; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 5
; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 7
; With -tailcallopt, CodeGen guarantees a tail call optimization
; for all of these.
@ -38,3 +38,15 @@ define fastcc i32 @noret() nounwind {
tail call fastcc void @does_not_return()
unreachable
}
define fastcc void @void_test(i32, i32, i32, i32) {
entry:
tail call fastcc void @void_test( i32 %0, i32 %1, i32 %2, i32 %3)
ret void
}
define fastcc i1 @i1test(i32, i32, i32, i32) {
entry:
%4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3)
ret i1 %4
}