Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 1 | ; RUN: %lli -use-mcjit %s > /dev/null |
2 | |||||
3 | define i32 @main() { | ||||
4 | ; <label>:0 | ||||
5 | br label %Loop | ||||
6 | Loop: ; preds = %Loop, %0 | ||||
7 | %I = phi i32 [ 0, %0 ], [ %i2, %Loop ] ; <i32> [#uses=1] | ||||
8 | %i2 = add i32 %I, 1 ; <i32> [#uses=2] | ||||
9 | %C = icmp eq i32 %i2, 10 ; <i1> [#uses=1] | ||||
10 | br i1 %C, label %Out, label %Loop | ||||
11 | Out: ; preds = %Loop | ||||
12 | ret i32 0 | ||||
13 | } | ||||
14 |