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