1 ; RUN: llc < %s -mtriple=i686-- -tailcallopt | grep TAILCALL | count 7
3 ; With -tailcallopt, CodeGen guarantees a tail call optimization
6 declare fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4)
8 define fastcc i32 @tailcaller(i32 %in1, i32 %in2) nounwind {
10 %tmp11 = tail call fastcc i32 @tailcallee(i32 %in1, i32 %in2, i32 %in1, i32 %in2)
14 declare fastcc i8* @alias_callee()
16 define fastcc noalias i8* @noalias_caller() nounwind {
17 %p = tail call fastcc i8* @alias_callee()
21 declare fastcc noalias i8* @noalias_callee()
23 define fastcc i8* @alias_caller() nounwind {
24 %p = tail call fastcc noalias i8* @noalias_callee()
28 declare fastcc i32 @i32_callee()
30 define fastcc i32 @ret_undef() nounwind {
31 %p = tail call fastcc i32 @i32_callee()
35 declare fastcc void @does_not_return()
37 define fastcc i32 @noret() nounwind {
38 tail call fastcc void @does_not_return()
42 define fastcc void @void_test(i32, i32, i32, i32) {
44 tail call fastcc void @void_test( i32 %0, i32 %1, i32 %2, i32 %3)
48 define fastcc i1 @i1test(i32, i32, i32, i32) {
50 %4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3)