1 ; RUN: llc -code-model=large -relocation-model=pic %s -o - | FileCheck %s
3 target triple = "x86_64-linux-gnu"
5 define i32 @f(i32 %i) {
7 switch i32 %i, label %bb4 [
30 ; CHECK: movabsq $.LJTI0_0@GOTOFF, [[R1:%r[a-z]{2}]]
31 ; CHECK-NEXT: addq [[R1]], [[R2:%r[a-z]{2}]]
32 ; CHECK-NEXT: addq ([[R2]],[[R3:%r[a-z]{2}]],8), [[R2]]
33 ; CHECK-NEXT: jmpq *[[R2]]
36 ; CHECK-NEXT: .quad .LBB0_2-.LJTI0_0
37 ; CHECK-NEXT: .quad .LBB0_3-.LJTI0_0
38 ; CHECK-NEXT: .quad .LBB0_4-.LJTI0_0
39 ; CHECK-NEXT: .quad .LBB0_5-.LJTI0_0