1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
6 sumlall za.s
[w11
, 4:7, vgx2
], {z12.h-z14.h
}, z8.h
[3]
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
8 // CHECK-NEXT
: sumlall za.s
[w11
, 4:7, vgx2
], {z12.h-z14.h
}, z8.h
[3]
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 sumlall za.s
[w11
, 4:7, vgx4
], {z12.h-z17.h
}, z8.h
[3]
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid number of vectors
13 // CHECK-NEXT
: sumlall za.s
[w11
, 4:7, vgx4
], {z12.h-z17.h
}, z8.h
[3]
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid indexed-vector register
19 sumlall za.s
[w10
, 0:3], z19.
b, z4.s
[4]
20 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid restricted vector register
, expected z0.b.
.z15.b
21 // CHECK-NEXT
: sumlall za.s
[w10
, 0:3], z19.
b, z4.s
[4]
22 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
24 sumlall za.s
[w10
, 4:7], z10.
b, z30.
b[1]
25 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid restricted vector register
, expected z0.b.
.z15.b
26 // CHECK-NEXT
: sumlall za.s
[w10
, 4:7], z10.
b, z30.
b[1]
27 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Invalid vector select register
32 sumlall za.s
[w7
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
33 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
34 // CHECK-NEXT
: sumlall za.s
[w7
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
35 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
37 sumlall za.s
[w12
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
38 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
39 // CHECK-NEXT
: sumlall za.s
[w12
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
40 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
42 // --------------------------------------------------------------------------//
43 // Invalid vector select offset
45 sumlall za.s
[w11
, 4:8], {z30.b-z31.
b}, z15.
b[15]
46 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
47 // CHECK-NEXT
: sumlall za.s
[w11
, 4:8], {z30.b-z31.
b}, z15.
b[15]
48 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
50 sumlall za.s
[w8
, 5:8, vgx2
], {z22.b-z23.
b}, z14.
b[2]
51 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector select offset must
be an immediate range of the form
<immf
>:<imml
>, where the first immediate is
a multiple of
4 in the range
[0, 4] or [0, 12] depending on the instruction
, and the second immediate is immf
+ 3.
52 // CHECK-NEXT
: sumlall za.s
[w8
, 5:8, vgx2
], {z22.b-z23.
b}, z14.
b[2]
53 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
55 // --------------------------------------------------------------------------//
56 // Invalid Register Suffix
58 sumlall za.h
[w8
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
59 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid matrix operand
, expected suffix
.s
60 // CHECK-NEXT
: sumlall za.h
[w8
, 6:7, vgx2
], {z12.b-z13.
b}, z8.
b
61 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
63 // --------------------------------------------------------------------------//
64 // Invalid vector lane index
66 sumlall za.s
[w8
, 0:3], {z0.b-z1.
b}, z0.
b[16]
67 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 15].
68 // CHECK-NEXT
: sumlall za.s
[w8
, 0:3], {z0.b-z1.
b}, z0.
b[16]
69 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
71 sumlall za.s
[w8
, 0:3], {z0.b-z1.
b}, z0.
b[-1]
72 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 15].
73 // CHECK-NEXT
: sumlall za.s
[w8
, 0:3], {z0.b-z1.
b}, z0.
b[-1]
74 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: