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.7 KiB
ArmAsm
53 lines
1.7 KiB
ArmAsm
# RUN: llvm-mc -mcpu=skylake -filetype=obj -triple x86_64-pc-linux-gnu %s -x86-pad-max-prefix-size=1 --x86-align-branch-boundary=32 --x86-align-branch=jmp+indirect | llvm-objdump -d - | FileCheck %s
|
|
# RUN: llvm-mc -mcpu=skylake -filetype=obj -triple x86_64-pc-linux-gnu %s --mc-relax-all | llvm-objdump -d - | FileCheck --check-prefixes=RELAX-ALL %s
|
|
|
|
# Exercise cases where we are allowed to increase the length of unrelaxable
|
|
# instructions (by adding prefixes) for alignment purposes.
|
|
|
|
# The first test checks instructions 'int3', 'push %rbp', which will be padded
|
|
# later are unrelaxable (their encoding size is still 1 byte when
|
|
# --mc-relax-all is passed).
|
|
.text
|
|
.globl labeled_unrelaxable_test
|
|
labeled_unrelaxable_test:
|
|
# RELAX-ALL: 0: cc int3
|
|
# RELAX-ALL: 1: 54 pushq %rsp
|
|
int3
|
|
push %rsp
|
|
|
|
# The second test is a basic test, we just check the jmp is aligned by prefix
|
|
# padding the previous instructions.
|
|
.text
|
|
.globl labeled_basic_test
|
|
labeled_basic_test:
|
|
.p2align 5
|
|
.rept 28
|
|
int3
|
|
.endr
|
|
# CHECK: 3c: 2e cc int3
|
|
# CHECK: 3e: 2e 54 pushq %rsp
|
|
# CHECK: 40: eb 00 jmp
|
|
int3
|
|
push %rsp
|
|
jmp foo
|
|
foo:
|
|
ret
|
|
|
|
# The third test check the correctness cornercase - can't add prefixes on a
|
|
# prefix or a instruction following by a prefix.
|
|
.globl labeled_prefix_test
|
|
labeled_prefix_test:
|
|
.p2align 5
|
|
.rept 28
|
|
int3
|
|
.endr
|
|
# CHECK: 7c: 2e cc int3
|
|
int3
|
|
# CHECK: 7e: 3e cc int3
|
|
DS
|
|
int3
|
|
# CHECK: 80: eb 00 jmp
|
|
jmp bar
|
|
bar:
|
|
ret
|