1 ; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call
3 define i32 @factorial(i32 %x) {
5 %tmp.1 = icmp sgt i32 %x, 0 ; <i1> [#uses=1]
6 br i1 %tmp.1, label %then, label %else
8 %tmp.6 = add i32 %x, -1 ; <i32> [#uses=1]
9 %tmp.4 = call i32 @factorial( i32 %tmp.6 ) ; <i32> [#uses=1]
10 %tmp.7 = mul i32 %tmp.4, %x ; <i32> [#uses=1]
12 else: ; preds = %entry