1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve  2>&1 < %s| FileCheck %s
2
3cntp  sp
4// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
5// CHECK-NEXT: cntp  sp
6// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
7
8
9// ------------------------------------------------------------------------- //
10// Invalid predicate operand
11
12cntp  x0, p15, p0
13// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
14// CHECK-NEXT: cntp  x0, p15, p0
15// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16
17cntp  x0, p15.b, p0.b
18// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
19// CHECK-NEXT: cntp  x0, p15.b, p0.b
20// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21
22cntp  x0, p15.q, p0.b
23// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
24// CHECK-NEXT: cntp  x0, p15.q, p0.b
25// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26