Files
TheRock/compiler/amd-llvm/llvm/test/MC/Hexagon/align.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

74 lines
1.6 KiB
ArmAsm

# RUN: llvm-mc -triple=hexagon -filetype=obj -mhvx %s | llvm-objdump --no-print-imm-hex --mattr=+hvx -d - | FileCheck %s
# Verify that the .align directive emits the proper insn packets.
{ r1 = sub(#1, r1) }
# CHECK: 76414021 { r1 = sub(#1,r1)
# CHECK-NEXT: 7f004000 nop
# CHECK-NEXT: 7f004000 nop
# CHECK-NEXT: 7f00c000 nop }
.align 16
{ r1 = sub(#1, r1)
r2 = sub(#1, r2) }
# CHECK: 76414021 { r1 = sub(#1,r1)
# CHECK-NEXT: 76424022 r2 = sub(#1,r2)
# CHECK-NEXT: 7f004000 nop
# CHECK-NEXT: 7f00c000 nop }
.p2align 5
{ r1 = sub(#1, r1)
r2 = sub(#1, r2)
r3 = sub(#1, r3) }
# CHECK: 76434023 r3 = sub(#1,r3)
# CHECK-NEXT: 7f00c000 nop }
.align 16
{ r1 = sub(#1, r1)
r2 = sub(#1, r2)
r3 = sub(#1, r3)
r4 = sub(#1, r4) }
# Don't pad packets that can't be padded e.g. solo insts
# CHECK: 9200c020 { r0 = vextract(v0,r0) }
r0 = vextract(v0, r0)
.align 128
# CHECK: 76414021 { r1 = sub(#1,r1)
# CHECK-NEXT: 7f00c000 nop }
{ r1 = sub(#1, r1) }
#CHECK: { r1 = sub(#1,r1)
#CHECK: r2 = sub(#1,r2)
#CHECK: r3 = sub(#1,r3) }
.falign
.align 8
{ r1 = sub(#1, r1)
r2 = sub(#1, r2)
r3 = sub(#1, r3) }
# CHECK: { immext(#0)
# CHECK: r0 = sub(##1,r0)
# CHECK: immext(#0)
# CHECK: r1 = sub(##1,r1) }
# CHECK: { nop
# CHECK: nop
# CHECK: nop }
# CHECK: { r0 = sub(#1,r0) }
{ r0 = sub (##1, r0)
r1 = sub (##1, r1) }
.align 16
{ r0 = sub (#1, r0) }
# Don't search backwards to pad packets beyond a label:
{ r1 = add(r1, r0) }
# CHECK-NEXT: { r1 = add(r1,r0)
# CHECK-NOT: nop
post_label:
.align 16
# CHECK-LABEL: post_label
# CHECK-NEXT: { nop
# CHECK-NEXT: nop }
# CHECK-NEXT: { r1 = sub(#1,r1) }
{ r1 = sub(#1, r1) }