Files
TheRock/compiler/amd-llvm/llvm/test/MC/RISCV/xqciac-valid.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

80 lines
2.6 KiB
ArmAsm

# Xqciac - Qualcomm uC Load-Store Address Calculation Extension
# RUN: llvm-mc %s -triple=riscv32 -mattr=+xqciac,+zba -M no-aliases -show-encoding \
# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-NOALIAS %s
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xqciac,+zba < %s \
# RUN: | llvm-objdump --mattr=+xqciac,+zba -M no-aliases --no-print-imm-hex -d - \
# RUN: | FileCheck -check-prefix=CHECK-INST %s
# RUN: llvm-mc %s -triple=riscv32 -mattr=+xqciac,+zba -show-encoding \
# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-ALIAS %s
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xqciac,+zba < %s \
# RUN: | llvm-objdump --mattr=+xqciac,+zba --no-print-imm-hex -d - \
# RUN: | FileCheck -check-prefix=CHECK-INST %s
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 0
# CHECK-ALIAS: qc.c.muliadd a0, a1, 0
# CHECK-ENC: encoding: [0x8a,0x21]
qc.c.muliadd x10, x11, 0
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 31
# CHECK-ALIAS: qc.c.muliadd a0, a1, 31
# CHECK-ENC: encoding: [0xea,0x3d]
qc.c.muliadd x10, x11, 31
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ENC: encoding: [0xaa,0x21]
qc.c.muliadd x10, x11, 16
# CHECK-INST: qc.muliadd tp, t0, 1234
# CHECK-ENC: encoding: [0x0b,0xe2,0x22,0x4d]
qc.muliadd x4, x5, 1234
# CHECK-INST: qc.muliadd a0, a1, -2048
# CHECK-ENC: encoding: [0x0b,0xe5,0x05,0x80]
qc.muliadd x10, x11, -2048
# CHECK-INST: qc.muliadd a0, a1, 2047
# CHECK-ENC: encoding: [0x0b,0xe5,0xf5,0x7f]
qc.muliadd x10, x11, 2047
# CHECK-INST: qc.shladd tp, t0, t1, 12
# CHECK-ENC: encoding: [0x0b,0xb2,0x62,0x58]
qc.shladd x4, x5, x6, 12
# CHECK-INST: qc.shladd a0, a1, a2, 4
# CHECK-ENC: encoding: [0x0b,0xb5,0xc5,0x48]
qc.shladd x10, x11, x12, 4
# CHECK-INST: qc.shladd a0, a1, a2, 31
# CHECK-ENC: encoding: [0x0b,0xb5,0xc5,0x7e]
qc.shladd x10, x11, x12, 31
# Check that compress pattern for qc.muliadd works
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ENC: encoding: [0xaa,0x21]
qc.muliadd x10, x11, 16
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 2
# CHECK-ALIAS: qc.c.muliadd a0, a1, 2
# CHECK-ENC: encoding: [0x8a,0x25]
sh1add x10, x11, x10
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 4
# CHECK-ALIAS: qc.c.muliadd a0, a1, 4
# CHECK-ENC: encoding: [0x8a,0x29]
sh2add x10, x11, x10
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 8
# CHECK-ALIAS: qc.c.muliadd a0, a1, 8
# CHECK-ENC: encoding: [0x8a,0x31]
sh3add x10, x11, x10
# CHECK-NOALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ALIAS: qc.c.muliadd a0, a1, 16
# CHECK-ENC: encoding: [0xaa,0x21]
qc.shladd x10, x11, x10, 4