1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
2>&1 < %s| FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Predicate register must have
.b suffix
6 nand p0.h
, p0
/z
, p0.h
, p1.h
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate register.
8 // CHECK-NEXT
: nand p0.h
, p0
/z
, p0.h
, p1.h
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 nand p0.s
, p0
/z
, p0.s
, p1.s
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate register.
13 // CHECK-NEXT
: nand p0.s
, p0
/z
, p0.s
, p1.s
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 nand p0.d
, p0
/z
, p0.d
, p1.d
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate register.
18 // CHECK-NEXT
: nand p0.d
, p0
/z
, p0.d
, p1.d
19 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
21 // --------------------------------------------------------------------------//
22 // Operation only has zeroing predicate behaviour
(p0
/z
).
24 nand p0.
b, p0
/m
, p1.
b, p2.
b
25 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
26 // CHECK-NEXT
: nand p0.
b, p0
/m
, p1.
b, p2.
b
27 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: