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
53 lines
1.5 KiB
ArmAsm
53 lines
1.5 KiB
ArmAsm
# The longjump pass may consider branch targets in range during tentative
|
|
# layout and decide not to insert stubs for them. Later, final section
|
|
# allocation may insert alignment padding after the last non-cold text section
|
|
# when hugify is enabled. This moves the following cold section farther away,
|
|
# resulting in relocation fixups going out of range at JITLink. Check that the
|
|
# longjump pass accounts for this padding and inserts stubs when needed.
|
|
|
|
# REQUIRES: system-linux, asserts, bolt-runtime, target=aarch64{{.*}}
|
|
|
|
# RUN: %clang %cflags -Wl,-q %s -o %t
|
|
# RUN: link_fdata --no-lbr %s %t %t.fdata
|
|
# RUN: llvm-strip --strip-unneeded %t
|
|
# RUN: llvm-bolt %t -o %t.bolt --data %t.fdata -split-functions --hugify
|
|
# RUN: llvm-objdump -d %t.bolt | FileCheck %s
|
|
|
|
.globl foo
|
|
.type foo, %function
|
|
foo:
|
|
.entry_foo:
|
|
# FDATA: 1 foo #.entry_foo# 10
|
|
cbz x0, .Lcold_foo
|
|
mov x0, #1
|
|
.Lcold_foo:
|
|
ret
|
|
|
|
.globl main
|
|
.type main, %function
|
|
main:
|
|
mov w0, wzr
|
|
ret
|
|
|
|
.globl _start
|
|
.type _start, %function
|
|
_start:
|
|
bl main
|
|
b .
|
|
|
|
## Force relocation mode.
|
|
.reloc 0, R_AARCH64_NONE
|
|
|
|
# CHECK: Disassembly of section .text:
|
|
|
|
# CHECK: <foo>:
|
|
# CHECK-NEXT: {{.*}} cbnz x0, 0x[[ADDR0:[0-9a-f]+]] <{{.*}}>
|
|
# CHECK-NEXT: {{.*}} b 0x[[ADDR1:[0-9a-f]+]] <{{.*}}>
|
|
# CHECK-NEXT: [[ADDR0]]: {{.*}} b 0x[[ADDR2:[0-9a-f]+]] <{{.*}}>
|
|
|
|
# CHECK: Disassembly of section .text.cold:
|
|
|
|
# CHECK: <foo.cold.0>:
|
|
# CHECK-NEXT: [[ADDR2]]: {{.*}} mov x0, #0x1 // =1
|
|
# CHECK-NEXT: [[ADDR1]]: {{.*}} ret
|