blob: 5ed8c4020f7662162dc6d6aa886f0a0a8b38f709 [file] [log] [blame]
Peter Collingbournefbb662f2013-01-16 17:27:22 +00001; RUN: %lli_mcjit %s > /dev/null
Danil Malyshevbb8cef52012-05-17 21:07:47 +00002
3define i32 @main() {
4; <label>:0
5 br label %Loop
6Loop: ; 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
11Out: ; preds = %Loop
12 ret i32 0
13}
14