1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
2>&1 < %s| FileCheck
%s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
13 // CHECK-NEXT
: incb sp
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 // INCB does
not have
a vector equivalent
18 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
19 // CHECK-NEXT
: incb z0.
b
20 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
23 // ------------------------------------------------------------------------- //
24 // Immediate
not compatible with encode
/decode function.
27 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[1, 16]
28 // CHECK-NEXT
: incb x0
, all
, mul #-1
29 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
32 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[1, 16]
33 // CHECK-NEXT
: incb x0
, all
, mul #0
34 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
37 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[1, 16]
38 // CHECK-NEXT
: incb x0
, all
, mul #17
39 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
42 // ------------------------------------------------------------------------- //
43 // Invalid predicate patterns
46 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
47 // CHECK-NEXT
: incb x0
, vl512
48 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
51 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand
52 // CHECK-NEXT
: incb x0
, vl9
53 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
56 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate pattern
57 // CHECK-NEXT
: incb x0
, #-1
58 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
61 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid predicate pattern
62 // CHECK-NEXT
: incb x0
, #32
63 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: