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 | 1afb0ccb40ffb0396d7fe8eb1001207c4d051665 (patch) | |
tree | ef833bf8e9dbdb7146029a4c528a6f0cadf99a20 /lib | |
parent | 3fa0a85ce8cf7324cf0135acfcf6687b157d14e3 (diff) | |
download | llvm-1afb0ccb40ffb0396d7fe8eb1001207c4d051665.tar.gz llvm-1afb0ccb40ffb0396d7fe8eb1001207c4d051665.tar.bz2 llvm-1afb0ccb40ffb0396d7fe8eb1001207c4d051665.tar.xz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsInstrInfo.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td index 62cb7c3359..a1c49c0ccf 100644 --- a/lib/Target/Mips/MipsInstrInfo.td +++ b/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", |