1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve  2>&1 < %s| FileCheck %s
2
3// --------------------------------------------------------------------------//
4//  Invalid pattern name
5// --------------------------------------------------------------------------//
6
7ptrues p0.s, vl512
8// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
9// CHECK-NEXT: ptrues p0.s, vl512
10// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
11
12ptrues p0.s, vl9
13// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
14// CHECK-NEXT: ptrues p0.s, vl9
15// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
16
17// --------------------------------------------------------------------------//
18//  Invalid immediate range
19// --------------------------------------------------------------------------//
20
21ptrues p0.s, #-1
22// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
23// CHECK-NEXT: ptrues p0.s, #-1
24// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
25
26ptrues p0.s, #32
27// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
28// CHECK-NEXT: ptrues p0.s, #32
29// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
30