1 # This test checks long call negative offset boundary(0x8000000) for aarch64.
3 # REQUIRES: system-linux
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
7 # RUN: %clang %cflags %t.o -o %t.exe -nostartfiles -fuse-ld=lld -Wl,-q \
8 # RUN: -Wl,--script=%p/Inputs/long-jmp-offset-boundary.ld
9 # RUN: llvm-bolt %t.exe -o %t.bolt.exe -skip-funcs="foo.*"
10 # RUN: llvm-objdump -d -j .text --print-imm-hex %t.bolt.exe | FileCheck %s
12 # The default alignment of the new program header table and the new text is
14 # CHECK: [[#%x,ADDR:]]: [[#]] bl
15 # CHECK-SAME: 0x[[#ADDR-0x8000000]] <foo>
18 .section foo_section,"ax",@progbits
25 .section main_section,"ax",@progbits
27 .type _start,@function
31 .size _start, .-_start