1; RUN: llc --mtriple x86_64-apple-darwin -filetype=obj -O0 %s -o %t.o 2; RUN: llvm-objdump --macho -d --no-show-raw-insn %t.o | FileCheck %s 3; RUN: llvm-otool -tv %t.o | FileCheck %s 4 5; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32 6; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32 7; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32 8; CHECK: .long {{[0-9]+}} @ KIND_JUMP_TABLE32 9; CHECK-NOT: invalid instruction encoding 10; CHECK-NOT: <unknown> 11 12; ModuleID = '-' 13target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 14target triple = "x86_64-apple-macosx10.12.0" 15 16; Function Attrs: noinline nounwind optnone ssp uwtable 17define void @switchfunc(i32 %i) { 18 switch i32 %i, label %out [ 19 i32 0, label %case1 20 i32 1, label %case2 21 i32 2, label %case3 22 i32 3, label %case4 23 ] 24 25case1: 26 call void @foo() 27 br label %out 28 29case2: 30 call void @bar() 31 br label %out 32 33case3: 34 call void @foo() 35 br label %out 36 37case4: 38 call void @bar() 39 br label %out 40 41out: 42 ret void 43} 44 45declare void @foo() 46declare void @bar() 47