Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / AArch64 / long-jmp-offset-boundary.s
blob1aeffd629f6f374f71a7413f5e28c97ced2f9a7e
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 \
6 # RUN: %s -o %t.o
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
13 # HugePageSize(2MB).
14 # CHECK: [[#%x,ADDR:]]: [[#]] bl
15 # CHECK-SAME: 0x[[#ADDR-0x8000000]] <foo>
17 .text
18 .section foo_section,"ax",@progbits
19 .globl foo
20 .type foo,@function
21 foo:
22 ret
23 .size foo, .-foo
25 .section main_section,"ax",@progbits
26 .globl _start
27 .type _start,@function
28 _start:
29 bl foo
30 ret
31 .size _start, .-_start