brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · da22a23 Raw
130 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+i8mm < %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// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+i8mm < %s \6// RUN:        | llvm-objdump -d --mattr=+sve,+i8mm - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+i8mm < %s \8// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN9 10 11// --------------------------------------------------------------------------//12// SMMLA, UMMLA, USMMLA (SVE)13 14ummla z0.s, z1.b, z2.b15// CHECK-INST: ummla z0.s, z1.b, z2.b16// CHECK-ENCODING: [0x20,0x98,0xc2,0x45]17// CHECK-ERROR: instruction requires: i8mm sve18// CHECK-UNKNOWN: 45c29820 <unknown>19 20smmla z0.s, z1.b, z2.b21// CHECK-INST: smmla z0.s, z1.b, z2.b22// CHECK-ENCODING: [0x20,0x98,0x02,0x45]23// CHECK-ERROR: instruction requires: i8mm sve24// CHECK-UNKNOWN: 45029820 <unknown>25 26usmmla z0.s, z1.b, z2.b27// CHECK-INST: usmmla z0.s, z1.b, z2.b28// CHECK-ENCODING: [0x20,0x98,0x82,0x45]29// CHECK-ERROR: instruction requires: i8mm sve30// CHECK-UNKNOWN: 45829820 <unknown>31 32 33// Test compatibility with MOVPRFX instruction.34 35movprfx z0, z736// CHECK-INST: movprfx	z0, z737// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]38// CHECK-UNKNOWN: 0420bce0 <unknown>39 40ummla z0.s, z1.b, z2.b41// CHECK-INST: ummla z0.s, z1.b, z2.b42// CHECK-ENCODING: [0x20,0x98,0xc2,0x45]43// CHECK-ERROR: instruction requires: i8mm sve44// CHECK-UNKNOWN: 45c29820 <unknown>45 46movprfx z0, z747// CHECK-INST: movprfx	z0, z748// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]49// CHECK-UNKNOWN: 0420bce0 <unknown>50 51smmla z0.s, z1.b, z2.b52// CHECK-INST: smmla z0.s, z1.b, z2.b53// CHECK-ENCODING: [0x20,0x98,0x02,0x45]54// CHECK-ERROR: instruction requires: i8mm sve55// CHECK-UNKNOWN: 45029820 <unknown>56 57movprfx z0, z758// CHECK-INST: movprfx	z0, z759// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]60// CHECK-UNKNOWN: 0420bce0 <unknown>61 62usmmla z0.s, z1.b, z2.b63// CHECK-INST: usmmla z0.s, z1.b, z2.b64// CHECK-ENCODING: [0x20,0x98,0x82,0x45]65// CHECK-ERROR: instruction requires: i8mm sve66// CHECK-UNKNOWN: 45829820 <unknown>67 68 69// --------------------------------------------------------------------------//70// USDOT (SVE, vectors)71 72usdot z0.s, z1.b, z2.b73// CHECK-INST: usdot z0.s, z1.b, z2.b74// CHECK-ENCODING: [0x20,0x78,0x82,0x44]75// CHECK-ERROR: instruction requires: i8mm sve or sme76// CHECK-UNKNOWN: 44827820 <unknown>77 78// Test compatibility with MOVPRFX instruction.79 80movprfx z0, z781// CHECK-INST: movprfx	z0, z782// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]83// CHECK-UNKNOWN: 0420bce0 <unknown>84 85usdot z0.s, z1.b, z2.b86// CHECK-INST: usdot z0.s, z1.b, z2.b87// CHECK-ENCODING: [0x20,0x78,0x82,0x44]88// CHECK-ERROR: instruction requires: i8mm sve or sme89// CHECK-UNKNOWN: 44827820 <unknown>90 91 92// --------------------------------------------------------------------------//93// USDOT, SUDOT (SVE, indexed)94 95usdot z0.s, z1.b, z2.b[0]96// CHECK-INST: usdot z0.s, z1.b, z2.b[0]97// CHECK-ENCODING: [0x20,0x18,0xa2,0x44]98// CHECK-ERROR: instruction requires: i8mm sve or sme99// CHECK-UNKNOWN: 44a21820 <unknown>100 101sudot z0.s, z1.b, z2.b[3]102// CHECK-INST: sudot z0.s, z1.b, z2.b[3]103// CHECK-ENCODING: [0x20,0x1c,0xba,0x44]104// CHECK-ERROR: instruction requires: i8mm sve or sme105// CHECK-UNKNOWN: 44ba1c20 <unknown>106 107// Test compatibility with MOVPRFX instruction.108 109movprfx z0, z7110// CHECK-INST: movprfx	z0, z7111// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]112// CHECK-UNKNOWN: 0420bce0 <unknown>113 114usdot z0.s, z1.b, z2.b[0]115// CHECK-INST: usdot z0.s, z1.b, z2.b[0]116// CHECK-ENCODING: [0x20,0x18,0xa2,0x44]117// CHECK-ERROR: instruction requires: i8mm sve or sme118// CHECK-UNKNOWN: 44a21820 <unknown>119 120movprfx z0, z7121// CHECK-INST: movprfx	z0, z7122// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]123// CHECK-UNKNOWN: 0420bce0 <unknown>124 125sudot z0.s, z1.b, z2.b[0]126// CHECK-INST: sudot z0.s, z1.b, z2.b[0]127// CHECK-ENCODING: [0x20,0x1c,0xa2,0x44]128// CHECK-ERROR: instruction requires: i8mm sve or sme129// CHECK-UNKNOWN: 44a21c20 <unknown>130