diff options
| author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-04-30 16:53:49 +0000 |
|---|---|---|
| committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-04-30 16:53:49 +0000 |
| commit | e8448728309a7a0f2386a6662a40864b4b4dc483 (patch) | |
| tree | b8f6137373ea48bb5699ef85c14a7eeaefb19b3e /llvm/lib | |
| parent | 121b1a1fa5534376d330357ad4d59618c0284167 (diff) | |
| download | bcm5719-llvm-e8448728309a7a0f2386a6662a40864b4b4dc483.tar.gz bcm5719-llvm-e8448728309a7a0f2386a6662a40864b4b4dc483.zip | |
[mips] Add instruction alias (negu).
Summary: negu $reg is equivalent to negu $reg, $reg.
Reviewers: dsanders
Reviewed By: dsanders
Differential Revision: http://reviews.llvm.org/D3510
llvm-svn: 207673
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index 62cb7c33591..a1c49c0ccf9 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MipsInstrInfo.td @@ -1215,6 +1215,8 @@ def : InstAlias<"not $rt, $rs", (NOR GPR32Opnd:$rt, GPR32Opnd:$rs, ZERO), 0>; def : InstAlias<"neg $rt, $rs", (SUB GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>; +def : InstAlias<"negu $rt", + (SUBu GPR32Opnd:$rt, ZERO, GPR32Opnd:$rt), 0>; def : InstAlias<"negu $rt, $rs", (SUBu GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>; def : InstAlias<"slt $rs, $rt, $imm", |

