llvm.org GIT mirror llvm / a00a5b9
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36230 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 35 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc
1
2 define void @foo(i32 %inTextSize) {
3 entry:
4 br label %bb236.outer
5
6 cond_next193: ; preds = %bb236
7 %tmp211 = add i32 %inTextSize_addr.1.ph17, -2 ; [#uses=1]
8 br i1 false, label %cond_next232, label %cond_true227
9
10 cond_true227: ; preds = %cond_next193
11 ret void
12
13 cond_next232: ; preds = %cond_next193
14 %indvar.next49 = add i32 %indvar48, 1 ; [#uses=1]
15 br label %bb236.outer
16
17 bb236.outer: ; preds = %cond_next232, %entry
18 %indvar48 = phi i32 [ %indvar.next49, %cond_next232 ], [ 0, %entry ] ; [#uses=2]
19 %inTextSize_addr.1.ph17 = phi i32 [ %tmp211, %cond_next232 ], [ %inTextSize, %entry ] ; [#uses=3]
20 %tmp.50 = sub i32 0, %indvar48 ; [#uses=1]
21 %tmp219 = icmp eq i32 %tmp.50, 0 ; [#uses=1]
22 br i1 %tmp219, label %bb236.us, label %bb236
23
24 bb236.us: ; preds = %bb236.outer
25 %inTextSize_addr.1.us = add i32 0, %inTextSize_addr.1.ph17 ; [#uses=0]
26 ret void
27
28 bb236: ; preds = %bb236.outer
29 %tmp238 = icmp eq i32 %inTextSize_addr.1.ph17, 0 ; [#uses=1]
30 br i1 %tmp238, label %exit, label %cond_next193
31
32 exit: ; preds = %bb236
33 ret void
34 }