blob: 649ed0b242775300503859def2a36763f4a6be3b [file] [log] [blame]
Gabor Greifafb4e8c2008-05-20 22:07:21 +00001; RUN: llvm-as %s -f -o %t.bc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: lli %t.bc > /dev/null
3
Tanya Lattner003eae52008-03-10 07:21:50 +00004define i32 @main() {
5; <label>:0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006 br label %Loop
Tanya Lattner003eae52008-03-10 07:21:50 +00007Loop: ; preds = %Loop, %0
8 %X = phi i32 [ 0, %0 ], [ 1, %Loop ] ; <i32> [#uses=1]
9 br i1 true, label %Out, label %Loop
10Out: ; preds = %Loop
11 ret i32 %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattner003eae52008-03-10 07:21:50 +000013