[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME / revd-diagnostics.s
blob6fd9af4fcd93fce94fd96f8800a8962a4bb49373
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid predicate
6 // invalid range (expected: p0-p7)
7 revd z0.q, p8/m, z0.q
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.
13 revd z0.q, p0/z, z0.q
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
21 revd z0.b, p0/m, z0.q
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]+}}:
26 revd z0.q, p0/m, z0.s
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
34 movprfx z21, z25
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]+}}: