1; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s 2; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s 3 4define void @bar(i32 %n.u) { 5entry: 6; CHECK: bar: 7; CHECK: tbb 8; CHECK: .align 1 9 10 switch i32 %n.u, label %bb12 [i32 1, label %bb i32 2, label %bb6 i32 4, label %bb7 i32 5, label %bb8 i32 6, label %bb10 i32 7, label %bb1 i32 8, label %bb3 i32 9, label %bb4 i32 10, label %bb9 i32 11, label %bb2 i32 12, label %bb5 i32 13, label %bb11 ] 11bb: 12 tail call void(...)* @foo1() 13 ret void 14bb1: 15 tail call void(...)* @foo2() 16 ret void 17bb2: 18 tail call void(...)* @foo6() 19 ret void 20bb3: 21 tail call void(...)* @foo3() 22 ret void 23bb4: 24 tail call void(...)* @foo4() 25 ret void 26bb5: 27 tail call void(...)* @foo5() 28 ret void 29bb6: 30 tail call void(...)* @foo1() 31 ret void 32bb7: 33 tail call void(...)* @foo2() 34 ret void 35bb8: 36 tail call void(...)* @foo6() 37 ret void 38bb9: 39 tail call void(...)* @foo3() 40 ret void 41bb10: 42 tail call void(...)* @foo4() 43 ret void 44bb11: 45 tail call void(...)* @foo5() 46 ret void 47bb12: 48 tail call void(...)* @foo6() 49 ret void 50} 51 52declare void @foo1(...) 53declare void @foo2(...) 54declare void @foo6(...) 55declare void @foo3(...) 56declare void @foo4(...) 57declare void @foo5(...) 58