1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p1
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Invalid vector lane indices
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: expected lane specifier
'[0]'
8 // CHECK-NEXT
: pmov p0.
b, z0
[1]
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 1].
13 // CHECK-NEXT
: pmov p0.h
, z0
[2]
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 1].
18 // CHECK-NEXT
: pmov p0.h
, z0
[-1]
19 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
22 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
23 // CHECK-NEXT
: pmov p0.s
, z0
[4]
24 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
27 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
28 // CHECK-NEXT
: pmov p0.s
, z0
[-1]
29 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
32 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 7].
33 // CHECK-NEXT
: pmov p0.d
, z0
[8]
34 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
37 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 7].
38 // CHECK-NEXT
: pmov p0.d
, z0
[-1]
39 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
44 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate register.
45 // CHECK-NEXT
: pmov z0
[2], p0.h
46 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
49 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
50 // CHECK-NEXT
: pmov z0
[-1], p0.h
51 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
54 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate register.
55 // CHECK-NEXT
: pmov z0
[4], p0.s
56 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
59 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
60 // CHECK-NEXT
: pmov z0
[-1], p0.s
61 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
64 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
65 // CHECK-NEXT
: pmov z0
[8], p0.d
66 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
69 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
70 // CHECK-NEXT
: pmov z0
[-1], p0.d
71 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: