1; RUN: llc --relocation-model=pic < %s | FileCheck %s 2; RUN: llc --relocation-model=static < %s | FileCheck %s 3 4target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5target triple = "x86_64-unknown-linux-gnu" 6 7; Jump tables shouldn't go through the GOT. 8define i32 @jump_table(i32 %x) #0 { 9; CHECK-LABEL: jump_table: 10; CHECK-NOT: @GOT 11 switch i32 %x, label %default [ 12 i32 0, label %1 13 i32 1, label %2 14 i32 2, label %3 15 i32 3, label %4 16 ] 171: 18 ret i32 7 192: 20 ret i32 42 213: 22 ret i32 3 234: 24 ret i32 8 25default: 26 ret i32 %x 27} 28 29attributes #0 = { "target-features"="+tagged-globals" } 30