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 6bfcvtnt z0.H, p0/m, z1.S 7// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s 8// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] 9// CHECK-ERROR: instruction requires: bf16 sve 10 11movprfx z0.S, p0/m, z2.S 12// CHECK-INST: movprfx z0.s, p0/m, z2.s 13// CHECK-ENCODING: [0x40,0x20,0x91,0x04] 14// CHECK-ERROR: instruction requires: sve 15 16bfcvtnt z0.H, p0/m, z1.S 17// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s 18// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] 19// CHECK-ERROR: instruction requires: bf16 sve 20 21movprfx z0, z2 22// CHECK-INST: movprfx z0, z2 23// CHECK-ENCODING: [0x40,0xbc,0x20,0x04] 24// CHECK-ERROR: instruction requires: sve 25 26bfcvtnt z0.H, p0/m, z1.S 27// CHECK-INST: bfcvtnt z0.h, p0/m, z1.s 28// CHECK-ENCODING: [0x20,0xa0,0x8a,0x64] 29// CHECK-ERROR: instruction requires: bf16 sve 30