e951a14ed2e94dbd4555c439bd5c853d448a929c
[oota-llvm.git] / test / ExecutionEngine / test-loop.ll
1 ; RUN: %lli %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