CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
110 lines
2.3 KiB
ArmAsm
110 lines
2.3 KiB
ArmAsm
// This test checks that the constant island is aligned after BOLT tool.
|
|
|
|
# RUN: split-file %s %t
|
|
|
|
// For the first test case, in case the nop before .Lci will be removed
|
|
// the pointer to exit function won't be aligned and the test will fail.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
|
|
# RUN: %t/xword_align.s -o %t_xa.o
|
|
# RUN: %clang %cflags -fPIC -pie %t_xa.o -o %t_xa.exe -Wl,-q \
|
|
# RUN: -nostartfiles -nodefaultlibs -Wl,-z,notext
|
|
# RUN: llvm-bolt %t_xa.exe -o %t_xa.bolt --use-old-text=0 --lite=0 \
|
|
# RUN: --trap-old-code
|
|
# RUN: llvm-objdump -d --disassemble-symbols='$d' %t_xa.bolt | FileCheck %s
|
|
|
|
// For the second and third test cases, we want to set an alignment based
|
|
// on various heuristics.
|
|
|
|
# RUN: %clang %cflags -pie %t/page_align.s -o %t_pa.exe -Wl,-q \
|
|
# RUN: -Wl,--init=_foo -Wl,--fini=_foo
|
|
# RUN: llvm-bolt %t_pa.exe -o %t_pa.bolt
|
|
# RUN: llvm-objdump -t %t_pa.exe | grep _const_island
|
|
# RUN: llvm-objdump -t %t_pa.bolt | grep _const_island | FileCheck %s \
|
|
# RUN: --check-prefix=PAGE
|
|
|
|
# RUN: %clang %cflags -pie %t/64B_align.s -o %t_64B.exe -Wl,-q \
|
|
# RUN: -Wl,--init=_foo -Wl,--fini=_foo
|
|
# RUN: llvm-bolt %t_64B.exe -o %t_64B.bolt
|
|
# RUN: llvm-objdump -t %t_64B.exe | grep _const_island
|
|
# RUN: llvm-objdump -t %t_64B.bolt | grep _const_island | FileCheck %s \
|
|
# RUN: --check-prefix=64BYTE
|
|
|
|
;--- xword_align.s
|
|
.text
|
|
.align 4
|
|
.global
|
|
.type dummy, %function
|
|
dummy:
|
|
add x0, x0, #1
|
|
ret
|
|
|
|
.global
|
|
.type exitOk, %function
|
|
exitOk:
|
|
mov x0, #0
|
|
ret
|
|
|
|
.global _start
|
|
.type _start, %function
|
|
_start:
|
|
adrp x0, .Lci
|
|
ldr x0, [x0, #:lo12:.Lci]
|
|
blr x0
|
|
mov x0, #1
|
|
ret
|
|
.size _start,.-_start
|
|
nop
|
|
# CHECK: {{0|8}} <$d>:
|
|
.Lci:
|
|
.xword exitOk
|
|
.xword 0
|
|
|
|
;--- page_align.s
|
|
.text
|
|
.global _foo
|
|
.type _foo, %function
|
|
_foo:
|
|
ret
|
|
|
|
.text
|
|
.global _const_island
|
|
.align 12
|
|
# PAGE: {{[0-9a-f]*}}000 g
|
|
_const_island:
|
|
.rept 0x25100
|
|
.byte 0xbb
|
|
.endr
|
|
|
|
.global _start
|
|
.type _start, %function
|
|
_start:
|
|
ret
|
|
|
|
# Dummy relocation to force relocation mode
|
|
.reloc 0, R_AARCH64_NONE
|
|
|
|
;--- 64B_align.s
|
|
.text
|
|
.global _foo
|
|
.type _foo, %function
|
|
_foo:
|
|
ret
|
|
|
|
.text
|
|
.global _const_island
|
|
.align 6
|
|
# 64BYTE: {{[0-9a-f]*}}{{0|4|8|c}}0 g
|
|
_const_island:
|
|
.rept 0x2048
|
|
.byte 0xbb
|
|
.endr
|
|
|
|
.global _start
|
|
.type _start, %function
|
|
_start:
|
|
ret
|
|
|
|
# Dummy relocation to force relocation mode
|
|
.reloc 0, R_AARCH64_NONE
|