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