1 // This test checks that the constant island is aligned after BOLT tool.
2 // In case the
nop before
.Lci will be removed the pointer to exit function
3 // won
't be alinged and the test will fail.
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
7 # RUN: %clang %cflags -fPIC -pie %t.o -o %t.exe -Wl,-q \
8 # RUN: -nostartfiles -nodefaultlibs -Wl,-z,notext
9 # RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code
10 # RUN: llvm-objdump -d --disassemble-symbols='$d
' %t.bolt | FileCheck %s
15 .type dummy, %function
21 .type exitOk, %function
27 .type _start, %function
30 ldr x0, [x0, #:lo12:.Lci]
35 # CHECK: {{0|8}} <$d>: