Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / runtime / AArch64 / constant-island-relocations.s
bloba2c4123126b5f6f7620262c8a807139fd528ed16
1 # This test checks that the address stored in constant island
2 # is updated after llvm-bolt
4 # REQUIRES: system-linux
6 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
7 # RUN: %s -o %t.o
8 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
9 # RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code
10 # RUN: %t.bolt
12 .text
13 .align 4
14 .global test
15 .type test, %function
16 test:
17 mov x0, #0
18 ret
19 .size test, .-test
21 .global main
22 .type main, %function
23 main:
24 adr x0, CI
25 ldr x0, [x0]
26 br x0
27 .size main, .-main
28 CI:
29 .xword test