842ed25439f84ddf89744ac32ee8ee7407fdd333
[oota-llvm.git] / test / CodeGen / X86 / tailcall-fastisel.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -tailcallopt -fast-isel -fast-isel-abort | FileCheck %s
2
3 %0 = type { i64, i32, i8* }
4
5 define fastcc i8* @"visit_array_aux<`Reference>"(%0 %arg, i32 %arg1) nounwind {
6 fail:                                             ; preds = %entry
7   %tmp20 = tail call fastcc i8* @"visit_array_aux<`Reference>"(%0 %arg, i32 undef) ; <i8*> [#uses=1]
8 ; CHECK: jmp "_visit_array_aux<`Reference>" ## TAILCALL
9   ret i8* %tmp20
10 }
11
12 define i32 @foo() nounwind {
13 entry:
14  %0 = tail call i32 (...)* @bar() nounwind       ; <i32> [#uses=1]
15  ret i32 %0
16 }
17
18 declare i32 @bar(...) nounwind