1 // RUN
: llvm-mc
< %s
-triple
=aarch64-none-linux-gnu
-filetype
=obj | llvm-readobj
-r | FileCheck
%s
6 .type test_jumptable,@function
7 test_jumptable
: // @test_jumptable
15 add x0
, x0
, #:lo12:.LJTI0_0
16 ldr x0
, [x0
, x1
, lsl
#3]
34 .size test_jumptable, .Ltmp0-test_jumptable
36 .section .rodata,"a",@progbits
47 // First make sure we get
a page
/lo12 pair in
.text to pick up the jump-table
49 // CHECK
: Relocations
[
50 // CHECK
: Section
({{[0-9]+}}) .rela.text {
51 // CHECK-NEXT
: 0x
{{[0-9,A-F
]+}} R_AARCH64_ADR_PREL_PG_HI21
.rodata
52 // CHECK-NEXT
: 0x
{{[0-9,A-F
]+}} R_AARCH64_ADD_ABS_LO12_NC
.rodata
55 // Also check the targets in
.rodata are relocated
56 // CHECK
: Section
({{[0-9]+}}) .rela.rodata {
57 // CHECK-NEXT
: 0x
{{[0-9,A-F
]+}} R_AARCH64_ABS64
.text