Fix spelling and grammar in a comment.
[oota-llvm.git] / test / Transforms / PredicateSimplifier / 2006-10-25-AddSetCC.ll
1 ; RUN: llvm-as < %s | \
2 ; RUN:   opt -predsimplify -instcombine -simplifycfg | llvm-dis | \
3 ; RUN:   grep -v declare | grep pass | count 2
4
5 define i32 @test(i32 %x, i32 %y) {
6 entry:
7         %tmp2 = icmp slt i32 %x, %y             ; <i1> [#uses=1]
8         %tmp = icmp ne i1 %tmp2, true           ; <i1> [#uses=1]
9         br i1 %tmp, label %cond_true, label %return
10 cond_true:              ; preds = %entry
11         %tmp4 = icmp eq i32 %x, %y              ; <i1> [#uses=1]
12         br i1 %tmp4, label %cond_true5, label %cond_false
13 cond_true5:             ; preds = %cond_true
14         %tmp6 = call i32 @pass1( )              ; <i32> [#uses=1]
15         ret i32 %tmp6
16 cond_false:             ; preds = %cond_true
17         %tmp8 = call i32 @pass2( )              ; <i32> [#uses=1]
18         ret i32 %tmp8
19 return:         ; preds = %entry
20         ret i32 0
21 }
22
23 declare i32 @pass1()
24
25 declare i32 @pass2()
26