1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p1
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Invalid predicate register
6 umaxqv v0.2d
, p11
, z0.d
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid restricted predicate register
, expected p0.
.p7 (without element suffix)
8 // CHECK-NEXT
: umaxqv v0.2d
, p11
, z0.d
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 // --------------------------------------------------------------------------//
12 // Invalid vector register
14 umaxqv v0.4h
, p1
, z0.h
15 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
16 // CHECK-NEXT
: umaxqv v0.4h
, p1
, z0.h
17 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
20 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
21 // CHECK-NEXT
: umaxqv z1.s
, p1
, z0.s
22 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
24 // --------------------------------------------------------------------------//
25 // Invalid vector suffix
27 umaxqv v0.8h
, p1
, z0.s
28 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
29 // CHECK-NEXT
: umaxqv v0.8h
, p1
, z0.s
30 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: