| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+bf16 < %s \ |
| 2 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+bf16 < %s \ |
| 4 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 5 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ |
| 6 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 7 |
|
| 8 |
bfcvtnt z0.H, p0/m, z1.S |
| 9 |
// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s |
| 10 |
// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] |
| 11 |
// CHECK-ERROR: instruction requires: bf16 sve or sme |
| 12 |
|
| 13 |
movprfx z0.S, p0/m, z2.S |
| 14 |
// CHECK-INST: movprfx z0.s, p0/m, z2.s |
| 15 |
// CHECK-ENCODING: [0x40,0x20,0x91,0x04] |
| 16 |
// CHECK-ERROR: instruction requires: sve or sme |
| 17 |
|
| 18 |
bfcvtnt z0.H, p0/m, z1.S |
| 19 |
// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s |
| 20 |
// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] |
| 21 |
// CHECK-ERROR: instruction requires: bf16 sve or sme |
| 22 |
|
| 23 |
movprfx z0, z2 |
| 24 |
// CHECK-INST: movprfx z0, z2 |
| 25 |
// CHECK-ENCODING: [0x40,0xbc,0x20,0x04] |
| 26 |
// CHECK-ERROR: instruction requires: sve or sme |
| 27 |
|
| 28 |
bfcvtnt z0.H, p0/m, z1.S |
| 29 |
// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s |
| 30 |
// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] |
| 31 |
// CHECK-ERROR: instruction requires: bf16 sve or sme |