summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/mips32r6
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-05-09 09:46:21 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-05-09 09:46:21 +0000
commit32650944eb3ba5ba57db50bb7a98d1c89396f4f3 (patch)
treeed50574986911367232efd4cb7fb96f8201a0d40 /test/CodeGen/Mips/mips32r6
parent6b68224e9ab550807265bb9f45dcd9611c6fc539 (diff)
[mips][mips64r6] Add experimental support for MIPS32r6 and MIPS64r6
Summary: Adds MIPS32r6/MIPS64r6 and checks the compatibility requirements for these processors. I've also included comments to describe removed and re-encoded instructions, along with placeholder def's for the new instructions but there are no functional changes to codegen at this point. Reviewers: jkolek, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D3622 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/mips32r6')
-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
+}