summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/msa/invalid.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/Mips/msa/invalid.s')
-rw-r--r--llvm/test/MC/Mips/msa/invalid.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/msa/invalid.s b/llvm/test/MC/Mips/msa/invalid.s
new file mode 100644
index 00000000000..cf1bff5596b
--- /dev/null
+++ b/llvm/test/MC/Mips/msa/invalid.s
@@ -0,0 +1,11 @@
+# Instructions that are invalid
+#
+# RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa \
+# RUN: -show-encoding 2>%t1
+# RUN: FileCheck %s < %t1
+
+ .set noat
+ insve.b $w25[3], $w9[1] # CHECK: :[[@LINE]]:26: error: expected '0'
+ insve.h $w24[2], $w2[1] # CHECK: :[[@LINE]]:26: error: expected '0'
+ insve.w $w0[2], $w13[1] # CHECK: :[[@LINE]]:26: error: expected '0'
+ insve.d $w3[0], $w18[1] # CHECK: :[[@LINE]]:26: error: expected '0'
OpenPOWER on IntegriCloud