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
48 lines
1.1 KiB
ArmAsm
48 lines
1.1 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
# RUN: llvm-objdump -d --no-show-raw-insn %t.o | FileCheck %s
|
|
|
|
## In the initial all-short layout, `jmp target` has displacement -129 (1 beyond
|
|
## [-128,127]). `je far_target` relaxes from 2B to 6B, shifting `target` by
|
|
## +4B, and `.p2align 4` absorbs this growth. With fresh offsets, `jmp target`
|
|
## sees displacement -125 and stays short (2B).
|
|
##
|
|
## The fused relaxation+layout computes alignment padding with fresh offsets,
|
|
## so the backward jmp sees the correct displacement and stays short (2B).
|
|
|
|
.text
|
|
.p2align 4
|
|
func:
|
|
je far_target
|
|
target:
|
|
pushq %rbp
|
|
pushq %rbx
|
|
movl %edi, %ebx
|
|
xorl %eax, %eax
|
|
movq 8(%rsi), %rcx
|
|
.rept 28
|
|
testq %rcx, %rcx
|
|
.endr
|
|
jmp past_loop
|
|
.p2align 4
|
|
loop:
|
|
movq (%r8), %r8
|
|
testq %r8, %r8
|
|
je after
|
|
past_loop:
|
|
cmpq %rdi, (%r8)
|
|
jne loop
|
|
cmpl %esi, 8(%r8)
|
|
## The jmp stays short (2B). after is at 0x83, not 0x86.
|
|
# CHECK: 81: jmp 0x6 <target>
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: 0000000000000083 <after>:
|
|
jmp target
|
|
after:
|
|
popq %rbx
|
|
popq %rbp
|
|
ret
|
|
|
|
.space 200
|
|
far_target:
|
|
ret
|