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

145 lines
6.0 KiB
ArmAsm

// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+faminmax < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %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=+sve2,+faminmax < %s \
// RUN: | llvm-objdump -d --mattr=+sve2,+faminmax - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+faminmax < %s \
// RUN: | llvm-objdump -d --mattr=-faminmax - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+faminmax < %s \
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN: | llvm-mc -triple=aarch64 -mattr=+sve2,+faminmax -disassemble -show-encoding \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// FAMIN
famin z0.h, p0/m, z0.h, z1.h // 01100101-01001111-10000000-00100000
// CHECK-INST: famin z0.h, p0/m, z0.h, z1.h
// CHECK-ENCODING: [0x20,0x80,0x4f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654f8020 <unknown>
movprfx z23, z31
famin z23.h, p3/m, z23.h, z13.h // 01100101-01001111-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famin z23.h, p3/m, z23.h, z13.h
// CHECK-ENCODING: [0xb7,0x8d,0x4f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654f8db7 <unknown>
famin z31.h, p7/m, z31.h, z30.h // 01100101-01001111-10011111-11011111
// CHECK-INST: famin z31.h, p7/m, z31.h, z30.h
// CHECK-ENCODING: [0xdf,0x9f,0x4f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654f9fdf <unknown>
famin z0.s, p0/m, z0.s, z1.s // 01100101-10001111-10000000-00100000
// CHECK-INST: famin z0.s, p0/m, z0.s, z1.s
// CHECK-ENCODING: [0x20,0x80,0x8f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658f8020 <unknown>
movprfx z23, z31
famin z23.s, p3/m, z23.s, z13.s // 01100101-10001111-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famin z23.s, p3/m, z23.s, z13.s
// CHECK-ENCODING: [0xb7,0x8d,0x8f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658f8db7 <unknown>
famin z31.s, p7/m, z31.s, z30.s // 01100101-10001111-10011111-11011111
// CHECK-INST: famin z31.s, p7/m, z31.s, z30.s
// CHECK-ENCODING: [0xdf,0x9f,0x8f,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658f9fdf <unknown>
famin z0.d, p0/m, z0.d, z1.d // 01100101-11001111-10000000-00100000
// CHECK-INST: famin z0.d, p0/m, z0.d, z1.d
// CHECK-ENCODING: [0x20,0x80,0xcf,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65cf8020 <unknown>
movprfx z23, z31
famin z23.d, p3/m, z23.d, z13.d // 01100101-11001111-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famin z23.d, p3/m, z23.d, z13.d
// CHECK-ENCODING: [0xb7,0x8d,0xcf,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65cf8db7 <unknown>
famin z31.d, p7/m, z31.d, z30.d // 01100101-11001111-10011111-11011111
// CHECK-INST: famin z31.d, p7/m, z31.d, z30.d
// CHECK-ENCODING: [0xdf,0x9f,0xcf,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65cf9fdf <unknown>
// FAMAX
famax z0.h, p0/m, z0.h, z1.h // 01100101-01001110-10000000-00100000
// CHECK-INST: famax z0.h, p0/m, z0.h, z1.h
// CHECK-ENCODING: [0x20,0x80,0x4e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654e8020 <unknown>
movprfx z23, z31
famax z23.h, p3/m, z23.h, z13.h // 01100101-01001110-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famax z23.h, p3/m, z23.h, z13.h
// CHECK-ENCODING: [0xb7,0x8d,0x4e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654e8db7 <unknown>
famax z31.h, p7/m, z31.h, z30.h // 01100101-01001110-10011111-11011111
// CHECK-INST: famax z31.h, p7/m, z31.h, z30.h
// CHECK-ENCODING: [0xdf,0x9f,0x4e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 654e9fdf <unknown>
famax z0.s, p0/m, z0.s, z1.s // 01100101-10001110-10000000-00100000
// CHECK-INST: famax z0.s, p0/m, z0.s, z1.s
// CHECK-ENCODING: [0x20,0x80,0x8e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658e8020 <unknown>
movprfx z23, z31
famax z23.s, p3/m, z23.s, z13.s // 01100101-10001110-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famax z23.s, p3/m, z23.s, z13.s
// CHECK-ENCODING: [0xb7,0x8d,0x8e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658e8db7 <unknown>
famax z31.s, p7/m, z31.s, z30.s // 01100101-10001110-10011111-11011111
// CHECK-INST: famax z31.s, p7/m, z31.s, z30.s
// CHECK-ENCODING: [0xdf,0x9f,0x8e,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 658e9fdf <unknown>
famax z0.d, p0/m, z0.d, z1.d // 01100101-11001110-10000000-00100000
// CHECK-INST: famax z0.d, p0/m, z0.d, z1.d
// CHECK-ENCODING: [0x20,0x80,0xce,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65ce8020 <unknown>
movprfx z23, z31
famax z23.d, p3/m, z23.d, z13.d // 01100101-11001110-10001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: famax z23.d, p3/m, z23.d, z13.d
// CHECK-ENCODING: [0xb7,0x8d,0xce,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65ce8db7 <unknown>
famax z31.d, p7/m, z31.d, z30.d // 01100101-11001110-10011111-11011111
// CHECK-INST: famax z31.d, p7/m, z31.d, z30.d
// CHECK-ENCODING: [0xdf,0x9f,0xce,0x65]
// CHECK-ERROR: instruction requires: faminmax sve2 or sme2
// CHECK-UNKNOWN: 65ce9fdf <unknown>