llvm-for-llvmta/test/MC/AArch64/SVE/matrix-multiply-fp32.s

18 lines
893 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+f32mm < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+i8mm,+f64mm < %s 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+f32mm < %s \
// RUN: | llvm-objdump -d --mattr=+sve,+f32mm - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+f32mm < %s \
// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// --------------------------------------------------------------------------//
// FMMLA (SVE)
fmmla z0.s, z1.s, z2.s
// CHECK-INST: fmmla z0.s, z1.s, z2.s
// CHECK-ENCODING: [0x20,0xe4,0xa2,0x64]
// CHECK-ERROR: instruction requires: f32mm
// CHECK-UNKNOWN: 20 e4 a2 64 <unknown>