1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
,+sme-i16i64
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Out of range index offset
6 sub za.s
[w8
, 8], {z20.s-z21.s
}, z10.s
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
8 // CHECK-NEXT
: sub za.s
[w8
, 8], {z20.s-z21.s
}, z10.s
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 sub za.d
[w8
, -1, vgx4
], {z0.s-z3.s
}, z0.s
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
13 // CHECK-NEXT
: sub za.d
[w8
, -1, vgx4
], {z0.s-z3.s
}, z0.s
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 sub za.d
[w8
, 8, vgx4
], {z0.s-z3.s
}
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
18 // CHECK-NEXT
: za.d
[w8
, 8, vgx4
], {z0.s-z3.s
}
19 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
21 sub za.d
[w8
, -1, vgx4
], {z0.s-z3.s
}
22 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
23 // CHECK-NEXT
: za.d
[w8
, -1, vgx4
], {z0.s-z3.s
}
24 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Invalid vector select register
29 sub za.d
[w7
, 0], {z0.d-z3.d
}, z0.d
30 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
31 // CHECK-NEXT
: sub za.d
[w7
, 0], {z0.d-z3.d
}, z0.d
32 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
34 sub za.s
[w12
, 0], {z0.s-z1.s
}, z0.s
35 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
36 // CHECK-NEXT
: sub za.s
[w12
, 0], {z0.s-z1.s
}, z0.s
37 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
39 // --------------------------------------------------------------------------//
40 // Invalid Matrix Operand
42 sub za.h
[w8
, #0], {z0.h-z3.h}, z4.h
43 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid matrix operand
, expected suffix
.d
44 // CHECK-NEXT
: sub za.h
[w8
, #0], {z0.h-z3.h}, z4.h
45 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
47 sub za.h
[w8
, 0, vgx2
], {z0.s
, z1.s
}
48 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid matrix operand
, expected suffix
.d
49 // CHECK-NEXT
: za.h
[w8
, 0, vgx2
], {z0.s
, z1.s
}
50 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
52 // --------------------------------------------------------------------------//
53 // Invalid vector grouping
55 sub za.s
[w8
, 0, vgx4
], {z0.s-z1.s
}, z0.s
56 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
57 // CHECK-NEXT
: za.s
[w8
, 0, vgx4
], {z0.s-z1.s
}, z0.s
58 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
60 sub za.d
[w8
, 0, vgx2
], {z0.d-z3.d
}, z0.d
61 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
62 // CHECK-NEXT
: za.d
[w8
, 0, vgx2
], {z0.d-z3.d
}, z0.d
63 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
65 // --------------------------------------------------------------------------//
66 // Invalid vector list.
68 sub za.d
[w8
, 0], {z0.d
,z2.d
}, {z0.d
,z2.d
}
69 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
70 // CHECK-NEXT
: sub za.d
[w8
, 0], {z0.d
,z2.d
}, {z0.d
,z2.d
}
71 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
73 sub za.s
[w10
, 3, vgx2
], {z10.s-z11.s
}, {z21.s-z22.s
}
74 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid vector list
, expected list with
2 consecutive SVE vectors
, where the first vector is
a multiple of
2 and with matching element types
75 // CHECK-NEXT
: sub za.s
[w10
, 3, vgx2
], {z10.s-z11.s
}, {z21.s-z22.s
}
76 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
78 sub za.d
[w11
, 7, vgx4
], {z12.d-z15.d
}, {z9.d-z12.d
}
79 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid vector list
, expected list with
4 consecutive SVE vectors
, where the first vector is
a multiple of
4 and with matching element types
80 // CHECK-NEXT
: sub za.d
[w11
, 7, vgx4
], {z12.d-z15.d
}, {z9.d-z12.d
}
81 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
83 sub za.s
[w10
, 3], {z10.b-z11.
b}, {z20.b-z21.
b}
84 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
85 // CHECK-NEXT
: sub za.s
[w10
, 3], {z10.b-z11.
b}, {z20.b-z21.
b}
86 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
88 sub za.d
[w11
, 7], {z28.h
- z31.h
}, {z28.h
- z31.h
}
89 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
90 // CHECK-NEXT
: sub za.d
[w11
, 7], {z28.h
- z31.h
}, {z28.h
- z31.h
}
91 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: