• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// REQUIRES: aarch64
2// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t.o
3// RUN: ld.lld %t.o -o %t
4// RUN: llvm-objdump -d --start-address=0x81d1008 --stop-address=0x81d1014 --no-show-raw-insn %t | FileCheck %s
5// RUN: rm %t.o %t
6// Check that the range extension thunks are dumped close to the aarch64 branch
7// range of 128 MiB
8 .section .text.1, "ax", %progbits
9 .balign 0x1000
10 .globl _start
11_start:
12 bl high_target
13 ret
14
15 .section .text.2, "ax", %progbits
16 .space 0x2000000
17
18 .section .text.2, "ax", %progbits
19 .space 0x2000000
20
21 .section .text.3, "ax", %progbits
22 .space 0x2000000
23
24 .section .text.4, "ax", %progbits
25 .space 0x2000000 - 0x40000
26
27 .section .text.5, "ax", %progbits
28 .space 0x40000
29
30 .section .text.6, "ax", %progbits
31 .balign 0x1000
32
33 .globl high_target
34 .type high_target, %function
35high_target:
36 ret
37
38// CHECK: <__AArch64AbsLongThunk_high_target>:
39// CHECK-NEXT:  81d1008:       ldr     x16, 0x81d1010
40// CHECK-NEXT:  81d100c:       br      x16
41// CHECK: <$d>:
42// CHECK-NEXT:  81d1010:       00 20 21 08     .word   0x08212000
43