summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsDSPInstrInfo.td
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-08-28 00:55:15 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-08-28 00:55:15 +0000
commita796d90c0ed7ebd5d58fced43c60afc2e9bf6225 (patch)
treea65b85efb4cbecf44cf92e7a1d0a2c7cee637cd5 /lib/Target/Mips/MipsDSPInstrInfo.td
parentbf19dba2d4c7927832d3037c15e0101afb730415 (diff)
downloadllvm-a796d90c0ed7ebd5d58fced43c60afc2e9bf6225.tar.gz
llvm-a796d90c0ed7ebd5d58fced43c60afc2e9bf6225.tar.bz2
llvm-a796d90c0ed7ebd5d58fced43c60afc2e9bf6225.tar.xz
[mips] Use ptr_rc to simplify definitions of base+index load/store instructions.
Also, fix predicates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsDSPInstrInfo.td')
-rw-r--r--lib/Target/Mips/MipsDSPInstrInfo.td5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsDSPInstrInfo.td b/lib/Target/Mips/MipsDSPInstrInfo.td
index 53e3389c2e..b3e01b19f8 100644
--- a/lib/Target/Mips/MipsDSPInstrInfo.td
+++ b/lib/Target/Mips/MipsDSPInstrInfo.td
@@ -348,10 +348,9 @@ class SHLL_QB_R2_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
class LX_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
InstrItinClass itin> {
dag OutOperandList = (outs GPR32Opnd:$rd);
- dag InOperandList = (ins GPR32Opnd:$base, GPR32Opnd:$index);
+ dag InOperandList = (ins PtrRC:$base, PtrRC:$index);
string AsmString = !strconcat(instr_asm, "\t$rd, ${index}(${base})");
- list<dag> Pattern = [(set GPR32Opnd:$rd,
- (OpNode GPR32Opnd:$base, GPR32Opnd:$index))];
+ list<dag> Pattern = [(set GPR32Opnd:$rd, (OpNode iPTR:$base, iPTR:$index))];
InstrItinClass Itinerary = itin;
bit mayLoad = 1;
}