1; RUN: llc -mtriple=arm-eabi %s -o /dev/null
2
3	%struct.List = type { %struct.List*, i32 }
4@Node5 = external constant %struct.List		; <%struct.List*> [#uses=1]
5@"\01LC" = external constant [7 x i8]		; <[7 x i8]*> [#uses=1]
6
7define i32 @main() nounwind {
8entry:
9	br label %bb
10
11bb:		; preds = %bb3, %entry
12	%CurL.02 = phi %struct.List* [ @Node5, %entry ], [ %2, %bb3 ]		; <%struct.List*> [#uses=1]
13	%PrevL.01 = phi %struct.List* [ null, %entry ], [ %CurL.02, %bb3 ]		; <%struct.List*> [#uses=1]
14	%0 = icmp eq %struct.List* %PrevL.01, null		; <i1> [#uses=1]
15	br i1 %0, label %bb3, label %bb1
16
17bb1:		; preds = %bb
18	br label %bb3
19
20bb3:		; preds = %bb1, %bb
21	%iftmp.0.0 = phi i32 [ 0, %bb1 ], [ -1, %bb ]		; <i32> [#uses=1]
22	%1 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([7 x i8], [7 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 %iftmp.0.0) nounwind		; <i32> [#uses=0]
23	%2 = load %struct.List*, %struct.List** null, align 4		; <%struct.List*> [#uses=2]
24	%phitmp = icmp eq %struct.List* %2, null		; <i1> [#uses=1]
25	br i1 %phitmp, label %bb5, label %bb
26
27bb5:		; preds = %bb3
28	ret i32 0
29}
30
31declare i32 @printf(i8* nocapture, ...) nounwind
32