summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM64/v128_lo-diagnostics.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM64/v128_lo-diagnostics.s b/llvm/test/MC/ARM64/v128_lo-diagnostics.s
new file mode 100644
index 00000000000..ffe29cfbed3
--- /dev/null
+++ b/llvm/test/MC/ARM64/v128_lo-diagnostics.s
@@ -0,0 +1,11 @@
+// RUN: not llvm-mc -triple arm64 -mattr=neon %s 2> %t > /dev/null
+// RUN: FileCheck %s < %t
+
+ sqrdmulh v0.8h, v1.8h, v16.h[0]
+// CHECK: error: invalid operand for instruction
+
+ sqrdmulh h0, h1, v16.h[0]
+// CHECK: error: invalid operand for instruction
+
+ sqdmull2 v0.4h, v1.8h, v16.h[0]
+// CHECK: error: invalid operand for instruction
OpenPOWER on IntegriCloud