1 ; RUN: llvm-as < %s | llc -march=arm -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 { %struct.rec*, %struct.rec* }
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, %struct.rec*, { %struct.rec* }, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, i32 }
13 %struct.rec = type { %struct.head_type }
14 @no_file_pos = external global %struct.FILE_POS ; <%struct.FILE_POS*> [#uses=1]
15 @"\01LC13423" = external constant [23 x i8] ; <[23 x i8]*> [#uses=1]
16 @"\01LC18972" = external constant [13 x i8] ; <[13 x i8]*> [#uses=1]
18 define fastcc void @FlushGalley(%struct.rec* %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 %struct.rec* %stop_link.3, null ; <i1> [#uses=1]
81 br i1 %0, label %bb435, label %bb433
83 bb394: ; preds = %bb122
84 call void (i32, i32, i8*, i32, %struct.FILE_POS*, ...)* @Error(i32 1, i32 3, i8* getelementptr ([23 x i8]* @"\01LC13423", i32 0, i32 0), i32 0, %struct.FILE_POS* @no_file_pos, i8* getelementptr ([13 x i8]* @"\01LC18972", i32 0, i32 0), i8* null) nounwind
87 bb396: ; preds = %bb394, %bb131, %bb122, %bb122, %bb122, %bb122, %RESUME
88 %stop_link.3 = phi %struct.rec* [ 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 ] ; <%struct.rec*> [#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 %struct.rec** null ; <%struct.rec*> [#uses=2]
91 %1 = icmp eq %struct.rec* %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(%struct.rec* %hd, %struct.rec* %stop_link.3, %struct.rec* 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 %struct.rec* null, null ; <i1> [#uses=1]
109 br i1 %2, label %bb520.preheader, label %bb499
111 bb520.preheader: ; preds = %bb499
115 declare fastcc void @Promote(%struct.rec*, %struct.rec*, %struct.rec* nocapture, i32) nounwind
117 declare void @Error(i32, i32, i8*, i32, %struct.FILE_POS*, ...) nounwind