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