1 ; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 2 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] 17 18 define fastcc void @FlushGalley(%struct.rec* %hd) nounwind { 19 entry: 20 br label %RESUME 21 22 RESUME: ; preds = %bb520.preheader, %entry 23 br label %bb396 24 25 bb122: ; preds = %bb396 26 switch i32 0, label %bb394 [ 27 i32 1, label %bb131 28 i32 2, label %bb244 29 i32 4, label %bb244 30 i32 5, label %bb244 31 i32 6, label %bb244 32 i32 7, label %bb244 33 i32 11, label %bb244 34 i32 12, label %bb244 35 i32 15, label %bb244 36 i32 17, label %bb244 37 i32 18, label %bb244 38 i32 19, label %bb244 39 i32 20, label %bb396 40 i32 21, label %bb396 41 i32 22, label %bb396 42 i32 23, label %bb396 43 i32 24, label %bb244 44 i32 25, label %bb244 45 i32 26, label %bb244 46 i32 27, label %bb244 47 i32 28, label %bb244 48 i32 29, label %bb244 49 i32 30, label %bb244 50 i32 31, label %bb244 51 i32 32, label %bb244 52 i32 33, label %bb244 53 i32 34, label %bb244 54 i32 35, label %bb244 55 i32 36, label %bb244 56 i32 37, label %bb244 57 i32 38, label %bb244 58 i32 39, label %bb244 59 i32 40, label %bb244 60 i32 41, label %bb244 61 i32 42, label %bb244 62 i32 43, label %bb244 63 i32 44, label %bb244 64 i32 45, label %bb244 65 i32 46, label %bb244 66 i32 50, label %bb244 67 i32 51, label %bb244 68 i32 94, label %bb244 69 i32 95, label %bb244 70 i32 96, label %bb244 71 i32 97, label %bb244 72 i32 98, label %bb244 73 i32 99, label %bb244 74 ] 75 76 bb131: ; preds = %bb122 77 br label %bb396 78 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 82 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 85 br label %bb396 86 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 93 94 bb398: ; preds = %bb396 95 unreachable 96 97 bb433: ; preds = %bb244 98 call fastcc void @Promote(%struct.rec* %hd, %struct.rec* %stop_link.3, %struct.rec* null, i32 1) nounwind 99 br label %bb435 100 101 bb435: ; preds = %bb433, %bb244 102 br i1 false, label %bb491, label %bb499 103 104 bb491: ; preds = %bb435 105 br label %bb499 106 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 110 111 bb520.preheader: ; preds = %bb499 112 br label %RESUME 113 } 114 115 declare fastcc void @Promote(%struct.rec*, %struct.rec*, %struct.rec* nocapture, i32) nounwind 116 117 declare void @Error(i32, i32, i8*, i32, %struct.FILE_POS*, ...) nounwind 118