blob: 88c393ea39732c71fb54447cc2181896412517cd [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output
2
3implementation ; Functions:
4
5void %test() {
6 br label %endif.0.i
7
8endif.0.i: ; preds = %then.0.i
9 br bool false, label %then.3.i, label %endif.3.i
10
11then.3.i: ; preds = %endif.0.i
12 br label %endif.3.i
13
14endif.3.i: ; preds = %endif.0.i, %then.3.i
15 %inxm.0.i = phi int [ 8, %then.3.i ], [ 0, %endif.0.i ]
16 %doinner.1.i = phi int [ 0, %then.3.i ], [ 0, %endif.0.i ]
17 br label %loopentry.2.i
18
19loopentry.2.i: ; preds = %endif.3.i, %no_exit.2.i
20 %inxk.0.i = phi int [ %tmp.210.i, %no_exit.2.i ], [ 0, %endif.3.i ]
21 br label %no_exit.2.i
22
23no_exit.2.i: ; preds = %loopentry.2.i
24 %tmp.210.i = sub int %inxk.0.i, %inxm.0.i
25 %tmp.213.i = add int %tmp.210.i, 0
26 br label %loopentry.2.i
27}