blob: 3141bf1900cbad7a6a85ec176698f0f517300d1e [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -loop-unroll -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner97928372008-03-19 07:28:33 +00003define i32 @main() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
Tanya Lattner97928372008-03-19 07:28:33 +00005 br label %no_exit
6no_exit: ; preds = %no_exit, %entry
7 %indvar = phi i32 [ 0, %entry ], [ %indvar.next, %no_exit ] ; <i32> [#uses=1]
8 %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=2]
9 %exitcond = icmp ne i32 %indvar.next, -2147483648 ; <i1> [#uses=1]
10 br i1 %exitcond, label %no_exit, label %loopexit
11loopexit: ; preds = %no_exit
12 ret i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
Tanya Lattner97928372008-03-19 07:28:33 +000014