2 ; RUN: llvm-upgrade < %s | llvm-as | lli
5 %f = cast int (int, int*, int)* %check_tail to int*
6 %res = tail call fastcc int %check_tail( int 10, int* %f,int 10)
9 fastcc int %check_tail(int %x, int* %f, int %g) {
10 %tmp1 = setgt int %x, 0
11 br bool %tmp1, label %if-then, label %if-else
14 %fun_ptr = cast int* %f to int(int, int*, int)*
15 %arg1 = add int %x, -1
16 %res = tail call fastcc int %fun_ptr( int %arg1, int * %f, int %g)