summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2014-04-30 16:29:56 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2014-04-30 16:29:56 +0000
commit3fa0a85ce8cf7324cf0135acfcf6687b157d14e3 (patch)
treeafe8dc111c358e25fc2eb55d5320663e1ba18dbf /lib
parenta8febf2283921157da1539c079cd74a55bf89a5a (diff)
downloadllvm-3fa0a85ce8cf7324cf0135acfcf6687b157d14e3.tar.gz
llvm-3fa0a85ce8cf7324cf0135acfcf6687b157d14e3.tar.bz2
llvm-3fa0a85ce8cf7324cf0135acfcf6687b157d14e3.tar.xz
[mips] Add instruction alias (sltu).
Summary: The pattern sltu $r1, $r2, $imm is found in handwritten assembly which is just a shorthand version of sltui $r1, $r2, $imm. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D3508 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td
index fdac180047..62cb7c3359 100644
--- a/lib/Target/Mips/MipsInstrInfo.td
+++ b/lib/Target/Mips/MipsInstrInfo.td
@@ -1219,6 +1219,8 @@ def : InstAlias<"negu $rt, $rs",
(SUBu GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>;
def : InstAlias<"slt $rs, $rt, $imm",
(SLTi GPR32Opnd:$rs, GPR32Opnd:$rt, simm16:$imm), 0>;
+def : InstAlias<"sltu $rt, $rs, $imm",
+ (SLTiu GPR32Opnd:$rt, GPR32Opnd:$rs, simm16:$imm), 0>;
def : InstAlias<"xor $rs, $rt, $imm",
(XORi GPR32Opnd:$rs, GPR32Opnd:$rt, uimm16:$imm), 0>;
def : InstAlias<"or $rs, $rt, $imm",