1 ; RUN: llc < %s -mattr=+v6,+vfp2
3 target triple = "arm-apple-darwin9"
4 %struct.FILE_POS = type { i8, i8, i16, i32 }
5 %struct.FIRST_UNION = type { %struct.FILE_POS }
6 %struct.FOURTH_UNION = type { %struct.STYLE }
7 %struct.GAP = type { i8, i8, i16 }
8 %struct.LIST = type { ptr, ptr }
9 %struct.SECOND_UNION = type { { i16, i8, i8 } }
10 %struct.STYLE = type { { %struct.GAP }, { %struct.GAP }, i16, i16, i32 }
11 %struct.THIRD_UNION = type { { [2 x i32], [2 x i32] } }
12 %struct.head_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, %struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, ptr, { ptr }, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
13 %struct.rec = type { %struct.head_type }
14 @no_file_pos = external global %struct.FILE_POS ; <ptr> [#uses=1]
15 @"\01LC13423" = external constant [23 x i8] ; <ptr> [#uses=1]
16 @"\01LC18972" = external constant [13 x i8] ; <ptr> [#uses=1]
18 define fastcc void @FlushGalley(ptr %hd) nounwind {
22 RESUME: ; preds = %bb520.preheader, %entry
25 bb122: ; preds = %bb396
26 switch i32 0, label %bb394 [
76 bb131: ; preds = %bb122
79 bb244: ; preds = %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122
80 %0 = icmp eq ptr %stop_link.3, null ; <i1> [#uses=1]
81 br i1 %0, label %bb435, label %bb433
83 bb394: ; preds = %bb122
84 call void (i32, i32, ptr, i32, ptr, ...) @Error(i32 1, i32 3, ptr @"\01LC13423", i32 0, ptr @no_file_pos, ptr @"\01LC18972", ptr null) nounwind
87 bb396: ; preds = %bb394, %bb131, %bb122, %bb122, %bb122, %bb122, %RESUME
88 %stop_link.3 = phi ptr [ null, %RESUME ], [ %stop_link.3, %bb394 ], [ %stop_link.3, %bb122 ], [ %stop_link.3, %bb122 ], [ %stop_link.3, %bb122 ], [ %stop_link.3, %bb122 ], [ %link.1, %bb131 ] ; <ptr> [#uses=7]
89 %headers_seen.1 = phi i32 [ 0, %RESUME ], [ %headers_seen.1, %bb394 ], [ 1, %bb122 ], [ 1, %bb122 ], [ 1, %bb122 ], [ 1, %bb122 ], [ %headers_seen.1, %bb131 ] ; <i32> [#uses=2]
90 %link.1 = load ptr, ptr null ; <ptr> [#uses=2]
91 %1 = icmp eq ptr %link.1, %hd ; <i1> [#uses=1]
92 br i1 %1, label %bb398, label %bb122
94 bb398: ; preds = %bb396
97 bb433: ; preds = %bb244
98 call fastcc void @Promote(ptr %hd, ptr %stop_link.3, ptr null, i32 1) nounwind
101 bb435: ; preds = %bb433, %bb244
102 br i1 false, label %bb491, label %bb499
104 bb491: ; preds = %bb435
107 bb499: ; preds = %bb499, %bb491, %bb435
108 %2 = icmp eq ptr null, null ; <i1> [#uses=1]
109 br i1 %2, label %bb520.preheader, label %bb499
111 bb520.preheader: ; preds = %bb499
115 declare fastcc void @Promote(ptr, ptr, ptr nocapture, i32) nounwind
117 declare void @Error(i32, i32, ptr, i32, ptr, ...) nounwind