aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/mips64r6/compatibility.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/mips64r6/compatibility.ll')
-rw-r--r--test/CodeGen/Mips/mips64r6/compatibility.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/mips64r6/compatibility.ll b/test/CodeGen/Mips/mips64r6/compatibility.ll
new file mode 100644
index 0000000..429f68d
--- /dev/null
+++ b/test/CodeGen/Mips/mips64r6/compatibility.ll
@@ -0,0 +1,9 @@
+; RUN: llc -march=mipsel -mcpu=mips64r6 < %s | FileCheck %s
+; RUN: not llc -march=mipsel -mcpu=mips64r6 -mattr=+dsp < %s 2>&1 | FileCheck --check-prefix=DSP %s
+
+; CHECK: foo:
+; DSP: MIPS64r6 is not compatible with the DSP ASE
+
+define void @foo() nounwind {
+ ret void
+}