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