summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-05-13 20:26:46 +0000
committerJack Carter <jack.carter@imgtec.com>2013-05-13 20:26:46 +0000
commitf4a1377322a9234c17b1d324c47248bdb5f62158 (patch)
treecd20ef7d4377b6a264206993dd04155714ffbd28 /lib
parent774a8cf2f5a5f8cd580c71f5eb3055a293917102 (diff)
downloadexternal_llvm-f4a1377322a9234c17b1d324c47248bdb5f62158.zip
external_llvm-f4a1377322a9234c17b1d324c47248bdb5f62158.tar.gz
external_llvm-f4a1377322a9234c17b1d324c47248bdb5f62158.tar.bz2
Mips assembler: Assembler macro ADDIU $rs,imm
This patch adds alias for addiu instruction which enables following syntax: addiu $rs,imm The macro is translated as: addiu $rs,$rs,imm Contributer: Vladimir Medic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td
index 3d31937..5ada1df 100644
--- a/lib/Target/Mips/MipsInstrInfo.td
+++ b/lib/Target/Mips/MipsInstrInfo.td
@@ -1095,7 +1095,8 @@ def : InstAlias<"mfc2 $rt, $rd",
(MFC2_3OP CPURegsOpnd:$rt, CPURegsOpnd:$rd, 0), 0>;
def : InstAlias<"mtc2 $rt, $rd",
(MTC2_3OP CPURegsOpnd:$rd, 0, CPURegsOpnd:$rt), 0>;
-
+def : InstAlias<"addiu $rs, $imm",
+ (ADDiu CPURegsOpnd:$rs, CPURegsOpnd:$rs, simm16:$imm), 0>;
//===----------------------------------------------------------------------===//
// Assembler Pseudo Instructions
//===----------------------------------------------------------------------===//