1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Invalid select register
6 fdot za.s
[w7
, 0, vgx4
], {z0.h-z3.h
}, z0.h
[0]
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
8 // CHECK-NEXT
: fdot za.s
[w7
, 0, vgx4
], {z0.h-z3.h
}, z0.h
[0]
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 fdot za.s
[w12
, 0, vgx2
], {z0.h-z1.h
}, z0.h
[0]
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
13 // CHECK-NEXT
: fdot za.s
[w12
, 0, vgx2
], {z0.h-z1.h
}, z0.h
[0]
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid select offset
19 fdot za.s
[w8
, 8], {z0.h-z1.h
}, z0.h
[0]
20 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
21 // CHECK-NEXT
: fdot za.s
[w8
, 8], {z0.h-z1.h
}, z0.h
[0]
22 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
24 fdot za.s
[w8
, -1], {z0.h-z3.h
}, z0.h
[0]
25 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
26 // CHECK-NEXT
: fdot za.s
[w8
, -1], {z0.h-z3.h
}, z0.h
[0]
27 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Out of range element index
32 fdot za.s
[w8
, 0], {z0.h-z1.h
}, z0.h
[4]
33 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
34 // CHECK-NEXT
: fdot za.s
[w8
, 0], {z0.h-z1.h
}, z0.h
[4]
35 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
37 fdot za.s
[w8
, 0], {z0.h-z3.h
}, z0.h
[-1]
38 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
39 // CHECK-NEXT
: fdot za.s
[w8
, 0], {z0.h-z3.h
}, z0.h
[-1]
40 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
42 // --------------------------------------------------------------------------//
43 // ZPR range constraint
45 fdot za.s
[w8
, 5], {z0.h-z1.h
}, z16.h
[0]
46 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid restricted vector register
, expected z0.h.
.z15.h
47 // CHECK-NEXT
: fdot za.s
[w8
, 5], {z0.h-z1.h
}, z16.h
[0]
48 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
50 fdot za.s
[w8
, 5], {z0.h-z3.h
}, z16.h
[0]
51 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid restricted vector register
, expected z0.h.
.z15.h
52 // CHECK-NEXT
: fdot za.s
[w8
, 5], {z0.h-z3.h
}, z16.h
[0]
53 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: