summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-16 09:41:30 +0000
committerTim Northover <tnorthover@apple.com>2014-05-16 09:41:30 +0000
commitfe6591ed778aafa7edfeb86e71fc12c8db6944e7 (patch)
tree934737611c166723b6b6cef85d57c87098fa51b1
parent8f8df324f35c775ee78ed5fb055ff4bce8352ebe (diff)
downloadbcm5719-llvm-fe6591ed778aafa7edfeb86e71fc12c8db6944e7.tar.gz
bcm5719-llvm-fe6591ed778aafa7edfeb86e71fc12c8db6944e7.zip
Mips: don't print subu alias for addiu
Certainly not without having a custom PrintMethod to invert the immediate beforehand. But probably not at all. This will be tested when the TableGen "should I print this Alias" heuristic is fixed (very soon). llvm-svn: 208964
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td
index ee7594f61dc..78cba614d6c 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.td
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.td
@@ -1318,13 +1318,13 @@ def : MipsInstAlias<"sll $rd, $rt, $rs",
(SLLV GPR32Opnd:$rd, GPR32Opnd:$rt, GPR32Opnd:$rs), 0>;
def : MipsInstAlias<"sub, $rd, $rs, $imm",
(ADDi GPR32Opnd:$rd, GPR32Opnd:$rs,
- InvertedImOperand:$imm)>;
+ InvertedImOperand:$imm), 0>;
def : MipsInstAlias<"sub $rs, $imm",
(ADDi GPR32Opnd:$rs, GPR32Opnd:$rs, InvertedImOperand:$imm),
0>;
def : MipsInstAlias<"subu, $rd, $rs, $imm",
(ADDiu GPR32Opnd:$rd, GPR32Opnd:$rs,
- InvertedImOperand:$imm)>;
+ InvertedImOperand:$imm), 0>;
def : MipsInstAlias<"subu $rs, $imm", (ADDiu GPR32Opnd:$rs, GPR32Opnd:$rs,
InvertedImOperand:$imm), 0>;
def : MipsInstAlias<"sra $rd, $rt, $rs",
OpenPOWER on IntegriCloud