1 ; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9 2 3 @no_mat = external global i32 ; <i32*> [#uses=1] 4 @no_mis = external global i32 ; <i32*> [#uses=2] 5 @"\01LC11" = external constant [33 x i8], align 1 ; <[33 x i8]*> [#uses=1] 6 @"\01LC15" = external constant [33 x i8], align 1 ; <[33 x i8]*> [#uses=1] 7 @"\01LC17" = external constant [47 x i8], align 1 ; <[47 x i8]*> [#uses=1] 8 9 declare i32 @printf(i8* nocapture, ...) nounwind 10 11 declare void @diff(i8*, i8*, i32, i32, i32, i32) nounwind 12 13 define void @SIM(i8* %A, i8* %B, i32 %M, i32 %N, i32 %K, [256 x i32]* %V, i32 %Q, i32 %R, i32 %nseq) nounwind { 14 entry: 15 br i1 undef, label %bb5, label %bb 16 17 bb: ; preds = %bb, %entry 18 br label %bb 19 20 bb5: ; preds = %entry 21 br i1 undef, label %bb6, label %bb8 22 23 bb6: ; preds = %bb6, %bb5 24 br i1 undef, label %bb8, label %bb6 25 26 bb8: ; preds = %bb6, %bb5 27 br label %bb15 28 29 bb9: ; preds = %bb15 30 br i1 undef, label %bb10, label %bb11 31 32 bb10: ; preds = %bb9 33 unreachable 34 35 bb11: ; preds = %bb9 36 %0 = load i32* undef, align 4 ; <i32> [#uses=3] 37 %1 = add i32 %0, 1 ; <i32> [#uses=2] 38 store i32 %1, i32* undef, align 4 39 %2 = load i32* undef, align 4 ; <i32> [#uses=2] 40 %3 = sub i32 %2, %0 ; <i32> [#uses=1] 41 store i32 0, i32* @no_mat, align 4 42 store i32 0, i32* @no_mis, align 4 43 %4 = getelementptr i8* %B, i32 %0 ; <i8*> [#uses=1] 44 tail call void @diff(i8* undef, i8* %4, i32 undef, i32 %3, i32 undef, i32 undef) nounwind 45 %5 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([33 x i8]* @"\01LC11", i32 0, i32 0), i32 %tmp13) nounwind ; <i32> [#uses=0] 46 %6 = load i32* @no_mis, align 4 ; <i32> [#uses=1] 47 %7 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([33 x i8]* @"\01LC15", i32 0, i32 0), i32 %6) nounwind ; <i32> [#uses=0] 48 %8 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([47 x i8]* @"\01LC17", i32 0, i32 0), i32 undef, i32 %1, i32 undef, i32 %2) nounwind ; <i32> [#uses=0] 49 br i1 undef, label %bb15, label %bb12 50 51 bb12: ; preds = %bb11 52 br label %bb228.i 53 54 bb74.i: ; preds = %bb228.i 55 br i1 undef, label %bb138.i, label %bb145.i 56 57 bb138.i: ; preds = %bb74.i 58 br label %bb145.i 59 60 bb145.i: ; preds = %bb228.i, %bb138.i, %bb74.i 61 br i1 undef, label %bb146.i, label %bb151.i 62 63 bb146.i: ; preds = %bb145.i 64 br i1 undef, label %bb228.i, label %bb151.i 65 66 bb151.i: ; preds = %bb146.i, %bb145.i 67 br i1 undef, label %bb153.i, label %bb228.i 68 69 bb153.i: ; preds = %bb151.i 70 br i1 undef, label %bb220.i, label %bb.nph.i98 71 72 bb.nph.i98: ; preds = %bb153.i 73 br label %bb158.i 74 75 bb158.i: ; preds = %bb218.i, %bb.nph.i98 76 br i1 undef, label %bb168.i, label %bb160.i 77 78 bb160.i: ; preds = %bb158.i 79 br i1 undef, label %bb161.i, label %bb168.i 80 81 bb161.i: ; preds = %bb160.i 82 br i1 undef, label %bb168.i, label %bb163.i 83 84 bb163.i: ; preds = %bb161.i 85 br i1 undef, label %bb167.i, label %bb168.i 86 87 bb167.i: ; preds = %bb163.i 88 br label %bb168.i 89 90 bb168.i: ; preds = %bb167.i, %bb163.i, %bb161.i, %bb160.i, %bb158.i 91 br i1 undef, label %bb211.i, label %bb218.i 92 93 bb211.i: ; preds = %bb168.i 94 br label %bb218.i 95 96 bb218.i: ; preds = %bb211.i, %bb168.i 97 br i1 undef, label %bb220.i, label %bb158.i 98 99 bb220.i: ; preds = %bb218.i, %bb153.i 100 br i1 undef, label %bb221.i, label %bb228.i 101 102 bb221.i: ; preds = %bb220.i 103 br label %bb228.i 104 105 bb228.i: ; preds = %bb221.i, %bb220.i, %bb151.i, %bb146.i, %bb12 106 br i1 undef, label %bb74.i, label %bb145.i 107 108 bb15: ; preds = %bb11, %bb8 109 %indvar11 = phi i32 [ 0, %bb8 ], [ %tmp13, %bb11 ] ; <i32> [#uses=2] 110 %tmp13 = add i32 %indvar11, 1 ; <i32> [#uses=2] 111 %count.0 = sub i32 undef, %indvar11 ; <i32> [#uses=0] 112 br i1 undef, label %return, label %bb9 113 114 return: ; preds = %bb15 115 ret void 116 } 117