summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsDSPInstrInfo.td
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-03-30 00:54:52 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-03-30 00:54:52 +0000
commit2cd7d3f9ce034ecc4ef4d6fa8fc7dac06f0c708f (patch)
tree0d4684be3584e4f7d2fc870e897e0bd9b1839d61 /lib/Target/Mips/MipsDSPInstrInfo.td
parentf7cef7081b2e09b48d47263e391db2390dddf5e8 (diff)
downloadllvm-2cd7d3f9ce034ecc4ef4d6fa8fc7dac06f0c708f.tar.gz
llvm-2cd7d3f9ce034ecc4ef4d6fa8fc7dac06f0c708f.tar.bz2
llvm-2cd7d3f9ce034ecc4ef4d6fa8fc7dac06f0c708f.tar.xz
[mips] Define pseudo instructions for spilling and copying accumulator
registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsDSPInstrInfo.td')
-rw-r--r--lib/Target/Mips/MipsDSPInstrInfo.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsDSPInstrInfo.td b/lib/Target/Mips/MipsDSPInstrInfo.td
index 9531b91487..54192eba41 100644
--- a/lib/Target/Mips/MipsDSPInstrInfo.td
+++ b/lib/Target/Mips/MipsDSPInstrInfo.td
@@ -1271,6 +1271,14 @@ def MULSA_W_PH_PSEUDO : DPA_W_PH_PSEUDO_BASE<MipsMULSA_W_PH, NoItinerary,
}
+/// Pseudo instructions for loading, storing and copying accumulator registers.
+let isPseudo = 1 in {
+ defm LOAD_AC_DSP : LoadM<"load_ac_dsp", ACRegsDSP>;
+ defm STORE_AC_DSP : StoreM<"store_ac_dsp", ACRegsDSP>;
+}
+
+def COPY_AC_DSP : PseudoSE<(outs ACRegsDSP:$dst), (ins ACRegsDSP:$src), []>;
+
// Patterns.
class DSPPat<dag pattern, dag result, Predicate pred = HasDSP> :
Pat<pattern, result>, Requires<[pred]>;