diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-03-24 15:38:00 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-03-24 15:38:00 +0000 |
| commit | 01f9fc06e754100763c692acc83cefd5f1c6e4d8 (patch) | |
| tree | 519ecf6e4324b2953a98ec1fc4b047fec4b99c1d /llvm/lib | |
| parent | 775b11cc532cc050fd9a7790a53bc6ff7efcaa1f (diff) | |
| download | bcm5719-llvm-01f9fc06e754100763c692acc83cefd5f1c6e4d8.tar.gz bcm5719-llvm-01f9fc06e754100763c692acc83cefd5f1c6e4d8.zip | |
[mips] Allow dsubu to take an immediate as an alias for dsubiu.
Summary:
Patch by David Chisnall
His work was sponsored by: DARPA, AFRL
Differential Revision: http://llvm-reviews.chandlerc.com/D3155
llvm-svn: 204611
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/Mips64InstrInfo.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/Mips64InstrInfo.td b/llvm/lib/Target/Mips/Mips64InstrInfo.td index 74cafa8e415..43ffee2c9ff 100644 --- a/llvm/lib/Target/Mips/Mips64InstrInfo.td +++ b/llvm/lib/Target/Mips/Mips64InstrInfo.td @@ -403,6 +403,9 @@ def DSUBi : MipsInst<(outs GPR64Opnd: $rt), (ins GPR64Opnd: $rs, simm16_64: $imm def DSUBiu : MipsInst<(outs GPR64Opnd: $rt), (ins GPR64Opnd: $rs, simm16_64: $imm), "ssubu\t$rt, $rs, $imm", [], II_DSUB, Pseudo>; } +def : InstAlias<"dsubu $rt, $rs, $imm", + (DSUBiu GPR64Opnd:$rt, GPR64Opnd:$rs, simm16_64: $imm), + 0>; def : InstAlias<"sub $rs, $imm", (SUBi GPR32Opnd:$rs, GPR32Opnd:$rs, simm16:$imm), 0>; |

