aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/mips-expansions-bad.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/mips-expansions-bad.s')
-rw-r--r--test/MC/Mips/mips-expansions-bad.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-expansions-bad.s b/test/MC/Mips/mips-expansions-bad.s
new file mode 100644
index 0000000..a137deb
--- /dev/null
+++ b/test/MC/Mips/mips-expansions-bad.s
@@ -0,0 +1,6 @@
+# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
+# RUN: FileCheck %s < %t1
+
+ .text
+ li $5, 0x100000000 # CHECK: :[[@LINE]]:9: error: instruction requires a CPU feature not currently enabled
+ dli $5, 1 # CHECK: :[[@LINE]]:9: error: instruction requires a CPU feature not currently enabled