xref: /llvm-project/llvm/test/MC/AArch64/SVE/bfmmla.s (revision ffa4dfc8de526ba28d12d62a14f984a7e1e9224b)
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+bf16 < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
5
6bfmmla z0.S, z1.H, z2.H
7// CHECK-INST: bfmmla z0.s, z1.h, z2.h
8// CHECK-ENCODING: [0x20,0xe4,0x62,0x64]
9// CHECK-ERROR: instruction requires: bf16 sve
10
11// --------------------------------------------------------------------------//
12// Test compatibility with MOVPRFX instruction.
13
14movprfx z0, z7
15// CHECK-INST: movprfx z0, z7
16// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
17// CHECK-ERROR: instruction requires: sve or sme
18
19bfmmla z0.S, z1.H, z2.H
20// CHECK-INST: bfmmla z0.s, z1.h, z2.h
21// CHECK-ENCODING: [0x20,0xe4,0x62,0x64]
22// CHECK-ERROR: instruction requires: bf16 sve
23