1 ; RUN: llvm-as < %s | opt -predsimplify -instcombine -simplifycfg -disable-output &&
2 ; RUN: llvm-as < %s | opt -predsimplify -instcombine -simplifycfg | llvm-dis | grep -v declare | grep -c pass | grep 2
4 int %test(int %x, int %y) {
6 %tmp2 = setlt int %x, %y
7 %tmp = setne bool %tmp2, true
8 br bool %tmp, label %cond_true, label %return
10 cond_true: ; preds = %entry
11 %tmp4 = seteq int %x, %y ; <bool> [#uses=1]
12 br bool %tmp4, label %cond_true5, label %cond_false
14 cond_true5: ; preds = %cond_true
15 %tmp6 = call int %pass1( ) ; <int> [#uses=1]
19 %tmp8 = call int %pass2( ) ; <int> [#uses=1]
22 return: ; preds = %cond_next7