1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
2>&1 < %s| FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Immediate out of upper bound
[-256, 255].
6 ldr p0
, [x0
, #-257, MUL VL]
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-256, 255].
8 // CHECK-NEXT
: ldr p0
, [x0
, #-257, MUL VL]
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 ldr p0
, [x0
, #256, MUL VL]
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-256, 255].
13 // CHECK-NEXT
: ldr p0
, [x0
, #256, MUL VL]
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 ldr z0
, [x0
, #-257, MUL VL]
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-256, 255].
18 // CHECK-NEXT
: ldr z0
, [x0
, #-257, MUL VL]
19 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
21 ldr z0
, [x0
, #256, MUL VL]
22 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: index must
be an integer in range
[-256, 255].
23 // CHECK-NEXT
: ldr z0
, [x0
, #256, MUL VL]
24 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Unexpected element width suffix
30 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: expected register without element width suffix
31 // CHECK-NEXT
: ldr z0.
b, [x0
]
32 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: