diff options
Diffstat (limited to 'test/MC/AArch64/SVE/frsqrts-diagnostics.s')
-rw-r--r-- | test/MC/AArch64/SVE/frsqrts-diagnostics.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/AArch64/SVE/frsqrts-diagnostics.s b/test/MC/AArch64/SVE/frsqrts-diagnostics.s new file mode 100644 index 000000000000..07dde46ad459 --- /dev/null +++ b/test/MC/AArch64/SVE/frsqrts-diagnostics.s @@ -0,0 +1,15 @@ +// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s + + +// ------------------------------------------------------------------------- // +// Invalid element size + +frsqrts z0.b, z1.b, z2.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width +// CHECK-NEXT: frsqrts z0.b, z1.b, z2.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +frsqrts z0.h, z1.s, z2.s +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width +// CHECK-NEXT: frsqrts z0.h, z1.s, z2.s +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |