forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Add assembly/disassembly for BFMOP4{A,S} (non-widening) ins…
…tructions (llvm#113342) The new instructions are described in https://developer.arm.com/documentation/ddi0602/2024-09/SME-Instructions
- Loading branch information
1 parent
dda20ea
commit 4015e18
Showing
4 changed files
with
440 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 changes: 220 additions & 0 deletions
220
llvm/test/MC/AArch64/SME2p2/bfmop4as-non-widening-diagnostics.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
// RUN: not llvm-mc -triple=aarch64 -mattr=+sme2p2,+sme-b16b16 < %s 2>&1 | FileCheck %s | ||
|
||
// BFMOP4A | ||
|
||
// Single vectors | ||
|
||
bfmop4a za0.d, z0.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4a za4.h, z0.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, z0.s, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z15.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z16.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z0.h, z16.s | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4a za0.h, z12.h, z17.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4a za0.h, z12.h, z14.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4a za0.h, z12.h, z31.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
// Single and multiple vectors | ||
|
||
bfmop4a za0.d, z0.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4a za4.h, z0.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, z0.s, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z1.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z16.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4a za0.h, z0.h, {z16.s-z17.s} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, z0.h, {z17.h-z18.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, z0.h, {z12.h-z13.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
// Multiple and single vectors | ||
|
||
bfmop4a za0.d, {z0.h-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4a za4.h, {z0.h-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, {z0.s-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix | ||
|
||
bfmop4a za0.h, {z1.h-z2.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, {z16.h-z17.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, z16.d | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, z17.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, z12.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
// Multiple vectors | ||
|
||
bfmop4a za0.d, {z0.h-z1.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4a za4.h, {z0.h-z1.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, {z0.s-z1.s}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, {z1.h-z2.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, {z18.h-z19.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, {z16.s-z17.s} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, {z19.h-z20.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4a za0.h, {z0.h-z1.h}, {z10.h-z11.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
|
||
// BFMOP4S | ||
|
||
// Single vectors | ||
|
||
bfmop4s za0.d, z0.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4s za4.h, z0.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, z0.s, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z15.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z16.h, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z0.h, z16.s | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4s za0.h, z12.h, z17.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4s za0.h, z12.h, z14.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4s za0.h, z12.h, z31.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
// Single and multiple vectors | ||
|
||
bfmop4s za0.d, z0.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4s za4.h, z0.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, z0.s, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z1.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z16.h, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z0.h..z14.h | ||
|
||
bfmop4s za0.h, z0.h, {z16.s-z17.s} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, z0.h, {z17.h-z18.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, z0.h, {z12.h-z13.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
// Multiple and single vectors | ||
|
||
bfmop4s za0.d, {z0.h-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4s za4.h, {z0.h-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, {z0.s-z1.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix | ||
|
||
bfmop4s za0.h, {z1.h-z2.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, {z16.h-z17.h}, z16.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, z16.d | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, z17.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, z12.h | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected even register in z16.h..z30.h | ||
|
||
// Multiple vectors | ||
|
||
bfmop4s za0.d, {z0.h-z1.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-3].s | ||
|
||
bfmop4s za4.h, {z0.h-z1.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, {z0.s-z1.s}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, {z1.h-z2.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, {z18.h-z19.h}, {z16.h-z17.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z0-z14, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, {z16.s-z17.s} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, {z19.h-z20.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types | ||
|
||
bfmop4s za0.h, {z0.h-z1.h}, {z10.h-z11.h} | ||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors in the range z16-z30, where the first vector is a multiple of 2 and with matching element types |
Oops, something went wrong.