1 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3 declare i32 @putchar(i32)
5 define tailcc i32 @checktail(i32 %x, ptr %f, i32 %g) nounwind {
6 ; CHECK-LABEL: checktail:
7 %tmp1 = icmp sgt i32 %x, 0
8 br i1 %tmp1, label %if-then, label %if-else
11 %arg1 = add i32 %x, -1
12 call i32 @putchar(i32 90)
13 ; CHECK: jmpl *%e{{.*}}
14 %res = tail call tailcc i32 %f( i32 %arg1, ptr %f, i32 %g)
22 define i32 @main() nounwind {
23 %res = tail call tailcc i32 @checktail( i32 10, ptr @checktail,i32 10)