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