diff options
Diffstat (limited to 'llvm/test/MC/AArch64/SME2/bfmops-diagnostics.s')
-rw-r--r-- | llvm/test/MC/AArch64/SME2/bfmops-diagnostics.s | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/llvm/test/MC/AArch64/SME2/bfmops-diagnostics.s b/llvm/test/MC/AArch64/SME2/bfmops-diagnostics.s new file mode 100644 index 0000000..14c25de --- /dev/null +++ b/llvm/test/MC/AArch64/SME2/bfmops-diagnostics.s @@ -0,0 +1,35 @@ +// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+b16b16 2>&1 < %s | FileCheck %s + +// --------------------------------------------------------------------------// +// Invalid predicate register + +bfmops za1.h, p8/m, p5/m, z12.h, z11.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: bfmops za1.h, p8/m, p5/m, z12.h, z11.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +bfmops za1.h, p5/m, p8/m, z12.h, z11.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: bfmops za1.h, p5/m, p8/m, z12.h, z11.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +bfmops za1.h, p5.h, p5/m, z12.h, z11.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: bfmops za1.h, p5.h, p5/m, z12.h, z11.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// --------------------------------------------------------------------------// +// Invalid matrix operand + +bfmops za2.h, p5/m, p5/m, z12.h, z11.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: bfmops za2.h, p5/m, p5/m, z12.h, z11.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// --------------------------------------------------------------------------// +// Invalid register suffixes + +bfmops za1.h, p5/m, p5/m, z12.h, z11.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width +// CHECK-NEXT: bfmops za1.h, p5/m, p5/m, z12.h, z11.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |