[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME / sclamp-diagnostics.s
blob8a8a297df87f95c81a18cb787dd7e8c08061c09a
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Mismatched element width
6 sclamp z0.b, z1.h, z2.b
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
8 // CHECK-NEXT: sclamp z0.b, z1.h, z2.b
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sclamp z0.b, z1.b, z2.q
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
13 // CHECK-NEXT: sclamp z0.b, z1.b, z2.q
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Test incompatibility with predicated MOVPRFX instruction.
19 movprfx z0.b, p0/z, z1.b
20 sclamp z0.b, z1.b, z2.b
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx
22 // CHECK-NEXT: sclamp z0.b, z1.b, z2.b
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: