[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME / uclamp-diagnostics.s
blob6b88e408377ffa97ea17e44a54d40e6bc6db83e5
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 uclamp 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: uclamp z0.b, z1.b, z2.b
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: