aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/mips32r3/invalid-mips64r2.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/mips32r3/invalid-mips64r2.s')
-rw-r--r--test/MC/Mips/mips32r3/invalid-mips64r2.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Mips/mips32r3/invalid-mips64r2.s b/test/MC/Mips/mips32r3/invalid-mips64r2.s
new file mode 100644
index 0000000..0f007e2
--- /dev/null
+++ b/test/MC/Mips/mips32r3/invalid-mips64r2.s
@@ -0,0 +1,10 @@
+# Instructions that are invalid
+#
+# RUN: not llvm-mc %s -triple=mips64-unknown-linux -show-encoding \
+# RUN: -mcpu=mips32r3 2>%t1
+# RUN: FileCheck %s < %t1
+
+ .set noat
+ dsbh $v1,$t6 # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled
+ dshd $v0,$sp # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled
+