32 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+bf16 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+bf16 < %s \4// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7 8bfcvt z0.H, p0/m, z1.S9// CHECK-INST: bfcvt z0.h, p0/m, z1.s10// CHECK-ENCODING: [0x20,0xa0,0x8a,0x65]11// CHECK-ERROR: instruction requires: bf16 sve or sme12 13movprfx z0.S, p0/m, z2.S14// CHECK-INST: movprfx z0.s, p0/m, z2.s15// CHECK-ENCODING: [0x40,0x20,0x91,0x04]16// CHECK-ERROR: instruction requires: sve or sme17 18bfcvt z0.H, p0/m, z1.S19// CHECK-INST: bfcvt z0.h, p0/m, z1.s20// CHECK-ENCODING: [0x20,0xa0,0x8a,0x65]21// CHECK-ERROR: instruction requires: bf16 sve or sme22 23movprfx z0, z224// CHECK-INST: movprfx z0, z225// CHECK-ENCODING: [0x40,0xbc,0x20,0x04]26// CHECK-ERROR: instruction requires: sve or sme27 28bfcvt z0.H, p0/m, z1.S29// CHECK-INST: bfcvt z0.h, p0/m, z1.s30// CHECK-ENCODING: [0x20,0xa0,0x8a,0x65]31// CHECK-ERROR: instruction requires: bf16 sve or sme32