2 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
5 uint %test(uint %tmp) {
6 cond_false179: ; preds = %cond_true
7 %tmp181 = seteq uint %tmp, 0 ; <bool> [#uses=1]
8 br bool %tmp181, label %cond_true182, label %cond_next185
10 cond_true182: ; preds = %cond_false179
11 br label %cond_next185
13 cond_next185: ; preds = %cond_true182, %cond_false179
14 %d0.3 = phi uint [ div (uint 1, uint 0), %cond_true182 ], [ %tmp,
15 %cond_false179 ] ; <uint> [#uses=7]
20 uint %test2(uint %tmp) {
21 cond_false179: ; preds = %cond_true
22 %tmp181 = seteq uint %tmp, 0 ; <bool> [#uses=1]
23 br bool %tmp181, label %cond_true182, label %cond_next185
25 cond_true182: ; preds = %cond_false179
26 br label %cond_next185
28 cond_next185: ; preds = %cond_true182, %cond_false179
29 %d0.3 = phi uint [ div (uint 1, uint 0), %cond_true182 ], [ %tmp,
30 %cond_false179 ] ; <uint> [#uses=7]
31 call uint %test(uint 4)