1 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep select
6 uint %test(uint %tmp) {
7 cond_false179: ; preds = %cond_true
8 %tmp181 = seteq uint %tmp, 0 ; <bool> [#uses=1]
9 br bool %tmp181, label %cond_true182, label %cond_next185
11 cond_true182: ; preds = %cond_false179
12 br label %cond_next185
14 cond_next185: ; preds = %cond_true182, %cond_false179
15 %d0.3 = phi uint [ div (uint 1, uint 0), %cond_true182 ], [ %tmp,
16 %cond_false179 ] ; <uint> [#uses=7]
21 uint %test2(uint %tmp) {
22 cond_false179: ; preds = %cond_true
23 %tmp181 = seteq uint %tmp, 0 ; <bool> [#uses=1]
24 br bool %tmp181, label %cond_true182, label %cond_next185
26 cond_true182: ; preds = %cond_false179
27 br label %cond_next185
29 cond_next185: ; preds = %cond_true182, %cond_false179
30 %d0.3 = phi uint [ div (uint 1, uint 0), %cond_true182 ], [ %tmp,
31 %cond_false179 ] ; <uint> [#uses=7]
32 call uint %test(uint 4)