Files
TheRock/compiler/amd-llvm/llvm/test/MC/AArch64/SVE2p3/luti6.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

116 lines
4.7 KiB
ArmAsm

// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p3 < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p3 < %s \
// RUN: | llvm-objdump -d --mattr=+sve2p3 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p3 < %s \
// RUN: | llvm-objdump -d --mattr=-sve2p3 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p3 < %s \
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN: | llvm-mc -triple=aarch64 -mattr=+sve2p3 -disassemble -show-encoding \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// ---------------------------------------------------------------
// Lookup table read with 6-bit indices (8-bit)
luti6 z0.b, { z0.b, z1.b }, z0
// CHECK-INST: luti6 z0.b, { z0.b, z1.b }, z0
// CHECK-ENCODING: encoding: [0x00,0xac,0x20,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 4520ac00 <unknown>
luti6 z10.b, { z0.b, z1.b }, z0
// CHECK-INST: luti6 z10.b, { z0.b, z1.b }, z0
// CHECK-ENCODING: encoding: [0x0a,0xac,0x20,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 4520ac0a <unknown>
luti6 z21.b, { z0.b, z1.b }, z0
// CHECK-INST: luti6 z21.b, { z0.b, z1.b }, z0
// CHECK-ENCODING: encoding: [0x15,0xac,0x20,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 4520ac15 <unknown>
luti6 z31.b, { z0.b, z1.b }, z0
// CHECK-INST: luti6 z31.b, { z0.b, z1.b }, z0
// CHECK-ENCODING: encoding: [0x1f,0xac,0x20,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 4520ac1f <unknown>
luti6 z0.b, { z31.b, z0.b }, z31
// CHECK-INST: luti6 z0.b, { z31.b, z0.b }, z31
// CHECK-ENCODING: encoding: [0xe0,0xaf,0x3f,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 453fafe0 <unknown>
luti6 z10.b, { z31.b, z0.b }, z31
// CHECK-INST: luti6 z10.b, { z31.b, z0.b }, z31
// CHECK-ENCODING: encoding: [0xea,0xaf,0x3f,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 453fafea <unknown>
luti6 z21.b, { z31.b, z0.b }, z31
// CHECK-INST: luti6 z21.b, { z31.b, z0.b }, z31
// CHECK-ENCODING: encoding: [0xf5,0xaf,0x3f,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 453faff5 <unknown>
luti6 z31.b, { z31.b, z0.b }, z31
// CHECK-INST: luti6 z31.b, { z31.b, z0.b }, z31
// CHECK-ENCODING: encoding: [0xff,0xaf,0x3f,0x45]
// CHECK-ERROR: instruction requires: sve2p3
// CHECK-UNKNOWN: 453fafff <unknown>
// ---------------------------------------------------------------
// Lookup table read with 6-bit indices (16-bit)
luti6 z0.h, { z0.h, z1.h }, z0[0]
// CHECK-INST: luti6 z0.h, { z0.h, z1.h }, z0[0]
// CHECK-ENCODING: encoding: [0x00,0xac,0x60,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 4560ac00 <unknown>
luti6 z10.h, { z0.h, z1.h }, z0[0]
// CHECK-INST: luti6 z10.h, { z0.h, z1.h }, z0[0]
// CHECK-ENCODING: encoding: [0x0a,0xac,0x60,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 4560ac0a <unknown>
luti6 z21.h, { z0.h, z1.h }, z0[0]
// CHECK-INST: luti6 z21.h, { z0.h, z1.h }, z0[0]
// CHECK-ENCODING: encoding: [0x15,0xac,0x60,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 4560ac15 <unknown>
luti6 z31.h, { z0.h, z1.h }, z0[0]
// CHECK-INST: luti6 z31.h, { z0.h, z1.h }, z0[0]
// CHECK-ENCODING: encoding: [0x1f,0xac,0x60,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 4560ac1f <unknown>
luti6 z0.h, { z31.h, z0.h }, z31[1]
// CHECK-INST: luti6 z0.h, { z31.h, z0.h }, z31[1]
// CHECK-ENCODING: encoding: [0xe0,0xaf,0xff,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 45ffafe0 <unknown>
luti6 z10.h, { z31.h, z0.h }, z31[1]
// CHECK-INST: luti6 z10.h, { z31.h, z0.h }, z31[1]
// CHECK-ENCODING: encoding: [0xea,0xaf,0xff,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 45ffafea <unknown>
luti6 z21.h, { z31.h, z0.h }, z31[1]
// CHECK-INST: luti6 z21.h, { z31.h, z0.h }, z31[1]
// CHECK-ENCODING: encoding: [0xf5,0xaf,0xff,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 45ffaff5 <unknown>
luti6 z31.h, { z31.h, z0.h }, z31[1]
// CHECK-INST: luti6 z31.h, { z31.h, z0.h }, z31[1]
// CHECK-ENCODING: encoding: [0xff,0xaf,0xff,0x45]
// CHECK-ERROR: instruction requires: sme2p3 or sve2p3
// CHECK-UNKNOWN: 45ffafff <unknown>