1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
2>&1 < %s| FileCheck
%s
3 // ------------------------------------------------------------------------- //
6 // invalid range
(expected
: p0-p7
)
8 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid restricted predicate register
, expected p0.
.p7 (without element suffix)
9 // CHECK-NEXT
: revd z0.q
, p8
/m
, z0.q
10 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
12 // wrong predication qualifier
, expected
/m.
14 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction requires
: sme2p2
or sve2p2
15 // CHECK-NEXT
: revd z0.q
, p0
/z
, z0.q
16 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
18 // ------------------------------------------------------------------------- //
19 // Invalid ZPR element width
22 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
23 // CHECK-NEXT
: revd z0.
b, p0
/m
, z0.q
24 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
27 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
28 // CHECK-NEXT
: revd z0.q
, p0
/m
, z0.s
29 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
31 // --------------------------------------------------------------------------//
32 // Negative tests for instructions that are incompatible with movprfx
35 revd z21.q
, p5
/m
, z10.q
36 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
37 // CHECK-NEXT
: revd z21.q
, p5
/m
, z10.q
38 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: