aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/InstPrinter
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-08-06 22:35:29 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-08-06 22:35:29 +0000
commit014096e4d5e65309ca71d0e63327f5386ddf16fb (patch)
tree9bf0dcc3defe46cf7a89ab9a5711c709549c74f6 /lib/Target/Mips/InstPrinter
parenta1fe9ef62e18dcb30cdee62a2fad82d05791d359 (diff)
downloadexternal_llvm-014096e4d5e65309ca71d0e63327f5386ddf16fb.zip
external_llvm-014096e4d5e65309ca71d0e63327f5386ddf16fb.tar.gz
external_llvm-014096e4d5e65309ca71d0e63327f5386ddf16fb.tar.bz2
[mips] Delete unnecessary InstAliases. Also, clear some of the InstAlias'
EmitAlias flag and have MipsInstPrinter::printAlias print the aliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/InstPrinter')
-rw-r--r--lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
index b04918c..369fece 100644
--- a/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
+++ b/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
@@ -256,6 +256,12 @@ bool MipsInstPrinter::printAlias(const MCInst &MI, raw_ostream &OS) {
case Mips::JALR64:
// jalr $ra, $r1 => jalr $r1
return isReg<Mips::RA_64>(MI, 0) && printAlias("jalr", MI, 1, OS);
+ case Mips::NOR:
+ // nor $r0, $r1, $zero => not $r0, $r1
+ return isReg<Mips::ZERO>(MI, 2) && printAlias("not", MI, 0, 1, OS);
+ case Mips::NOR64:
+ // nor $r0, $r1, $zero => not $r0, $r1
+ return isReg<Mips::ZERO_64>(MI, 2) && printAlias("not", MI, 0, 1, OS);
case Mips::OR:
// or $r0, $r1, $zero => move $r0, $r1
return isReg<Mips::ZERO>(MI, 2) && printAlias("move", MI, 0, 1, OS);