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