2 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p1
2>&1 < %s | FileCheck
%s
4 // --------------------------------------------------------------------------//
5 // Invalid predicate register
7 st1d
{z0.q
}, p8
, [x0
, x0
, lsl
#3]
8 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid restricted predicate register
, expected p0.
.p7 (without element suffix)
9 // CHECK-NEXT
: st1d
{z0.q
}, p8
, [x0
, x0
, lsl
#3]
10 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
12 st1d
{z23.q
}, p2
/m
, [x13
, #-8, mul vl]
13 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
14 // CHECK-NEXT
: st1d
{z23.q
}, p2
/m
, [x13
, #-8, mul vl]
15 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
17 st1d
{z23.q
}, p2.q
, [x13
, #-8, mul vl]
18 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid restricted predicate register
, expected p0.
.p7 (without element suffix)
19 // CHECK-NEXT
: st1d
{z23.q
}, p2.q
, [x13
, #-8, mul vl]
20 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
22 // --------------------------------------------------------------------------//
23 // Invalid immediate range
25 st1d
{z0.q
}, p0
, [x0
, #-9, mul vl]
26 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-8, 7].
27 // CHECK-NEXT
: st1d
{z0.q
}, p0
, [x0
, #-9, mul vl]
28 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
30 st1d
{z3.q
}, p0
, [x0
, #8, mul vl]
31 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-8, 7].
32 // CHECK-NEXT
: st1d
{z3.q
}, p0
, [x0
, #8, mul vl]
33 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: