[SLP]Reduce number of alternate instruction, where possible
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / bfmmla.s
blob660f3034837a965b8d00a40b969eb1afa9d829a3
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
6 bfmmla 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
11 // --------------------------------------------------------------------------//
12 // Test compatibility with MOVPRFX instruction.
14 movprfx z0, z7
15 // CHECK-INST: movprfx z0, z7
16 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
17 // CHECK-ERROR: instruction requires: sve or sme
19 bfmmla 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