1 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel 2 ; PR1061 3 target datalayout = "e-p:32:32" 4 target triple = "i686-pc-linux-gnu" 5 6 define void @bar(i32 %n) { 7 entry: 8 switch i32 %n, label %bb12 [ 9 i32 1, label %bb 10 i32 2, label %bb6 11 i32 4, label %bb7 12 i32 5, label %bb8 13 i32 6, label %bb10 14 i32 7, label %bb1 15 i32 8, label %bb3 16 i32 9, label %bb4 17 i32 10, label %bb9 18 i32 11, label %bb2 19 i32 12, label %bb5 20 i32 13, label %bb11 21 ] 22 23 bb: ; preds = %entry 24 call void (...)* @foo1( ) 25 ret void 26 27 bb1: ; preds = %entry 28 call void (...)* @foo2( ) 29 ret void 30 31 bb2: ; preds = %entry 32 call void (...)* @foo6( ) 33 ret void 34 35 bb3: ; preds = %entry 36 call void (...)* @foo3( ) 37 ret void 38 39 bb4: ; preds = %entry 40 call void (...)* @foo4( ) 41 ret void 42 43 bb5: ; preds = %entry 44 call void (...)* @foo5( ) 45 ret void 46 47 bb6: ; preds = %entry 48 call void (...)* @foo1( ) 49 ret void 50 51 bb7: ; preds = %entry 52 call void (...)* @foo2( ) 53 ret void 54 55 bb8: ; preds = %entry 56 call void (...)* @foo6( ) 57 ret void 58 59 bb9: ; preds = %entry 60 call void (...)* @foo3( ) 61 ret void 62 63 bb10: ; preds = %entry 64 call void (...)* @foo4( ) 65 ret void 66 67 bb11: ; preds = %entry 68 call void (...)* @foo5( ) 69 ret void 70 71 bb12: ; preds = %entry 72 call void (...)* @foo6( ) 73 ret void 74 } 75 76 declare void @foo1(...) 77 78 declare void @foo2(...) 79 80 declare void @foo6(...) 81 82 declare void @foo3(...) 83 84 declare void @foo4(...) 85 86 declare void @foo5(...) 87