aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Mips/mips64r5/invalid-mips64.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/mips64r5/invalid-mips64.s')
-rw-r--r--test/MC/Mips/mips64r5/invalid-mips64.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/Mips/mips64r5/invalid-mips64.s b/test/MC/Mips/mips64r5/invalid-mips64.s
new file mode 100644
index 000000000000..412fb31a1043
--- /dev/null
+++ b/test/MC/Mips/mips64r5/invalid-mips64.s
@@ -0,0 +1,8 @@
+# Instructions that are invalid
+#
+# RUN: not llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips64 \
+# RUN: 2>%t1
+# RUN: FileCheck %s < %t1
+
+ .set noat
+ eretnc # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled