brintos

brintos / llvm-project-archived public Read only

0
0
Text · 834 B · 660f303 Raw
23 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: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5 6bfmmla z0.S, z1.H, z2.H7// CHECK-INST: bfmmla z0.s, z1.h, z2.h8// CHECK-ENCODING: [0x20,0xe4,0x62,0x64]9// CHECK-ERROR: instruction requires: bf16 sve10 11// --------------------------------------------------------------------------//12// Test compatibility with MOVPRFX instruction.13 14movprfx z0, z715// CHECK-INST: movprfx z0, z716// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]17// CHECK-ERROR: instruction requires: sve or sme18 19bfmmla z0.S, z1.H, z2.H20// CHECK-INST: bfmmla z0.s, z1.h, z2.h21// CHECK-ENCODING: [0x20,0xe4,0x62,0x64]22// CHECK-ERROR: instruction requires: bf16 sve23