blob: e5d1183dab0d8fc2b17352b1895cd609094f3d45 [file] [log] [blame]
Nick Lewyckyaff6f982009-08-17 17:00:57 +00001; RUN: llvm-as < %s | opt -abcd -disable-output
2
3define void @test(i32 %x) {
4entry:
5 br label %label1
6label1:
7 %A = phi i32 [ 0, %entry ], [ %A.1, %label2 ]
8 %B = icmp slt i32 %A, %x
9 br i1 %B, label %label2, label %label2
10label2:
11 %A.1 = add i32 %A, 1
12 br label %label1
13label3: ; No predecessors!
14 ret void
15}