brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 407bd9c Raw
55 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 8bfdot z0.S, z1.H, z2.H9// CHECK-INST: bfdot z0.s, z1.h, z2.h10// CHECK-ENCODING: [0x20,0x80,0x62,0x64]11// CHECK-ERROR: instruction requires: bf16 sve or sme12 13bfdot z0.S, z1.H, z2.H[0]14// CHECK-INST: bfdot z0.s, z1.h, z2.h[0]15// CHECK-ENCODING: [0x20,0x40,0x62,0x64]16// CHECK-ERROR: instruction requires: bf16 sve or sme17 18bfdot z0.S, z1.H, z2.H[3]19// CHECK-INST: bfdot z0.s, z1.h, z2.h[3]20// CHECK-ENCODING: [0x20,0x40,0x7a,0x64]21// CHECK-ERROR: instruction requires: bf16 sve or sme22 23// --------------------------------------------------------------------------//24// Test compatibility with MOVPRFX instruction.25 26movprfx z0, z727// CHECK-INST: movprfx z0, z728// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]29// CHECK-ERROR: instruction requires: sve or sme30 31bfdot z0.S, z1.H, z2.H32// CHECK-INST: bfdot z0.s, z1.h, z2.h33// CHECK-ENCODING: [0x20,0x80,0x62,0x64]34// CHECK-ERROR: instruction requires: bf16 sve or sme35 36movprfx z0, z737// CHECK-INST: movprfx z0, z738// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]39// CHECK-ERROR: instruction requires: sve or sme40 41bfdot z0.S, z1.H, z2.H[0]42// CHECK-INST: bfdot z0.s, z1.h, z2.h[0]43// CHECK-ENCODING: [0x20,0x40,0x62,0x64]44// CHECK-ERROR: instruction requires: bf16 sve or sme45 46movprfx z0, z747// CHECK-INST: movprfx z0, z748// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]49// CHECK-ERROR: instruction requires: sve or sme50 51bfdot z0.S, z1.H, z2.H[3]52// CHECK-INST: bfdot z0.s, z1.h, z2.h[3]53// CHECK-ENCODING: [0x20,0x40,0x7a,0x64]54// CHECK-ERROR: instruction requires: bf16 sve or sme55