diff options
| author | Jack Carter <jack.carter@imgtec.com> | 2013-03-28 23:45:13 +0000 |
|---|---|---|
| committer | Jack Carter <jack.carter@imgtec.com> | 2013-03-28 23:45:13 +0000 |
| commit | af7da5cb993d1a2afad4816fe22c497d5adbef91 (patch) | |
| tree | 8a040115cd9fd60e13eb45b0e47fce247cef9dd5 /lib/Target/Mips/MipsInstrInfo.td | |
| parent | c26392aa5d9c2dbca2909d6874d181455f8aeb8f (diff) | |
| download | external_llvm-af7da5cb993d1a2afad4816fe22c497d5adbef91.zip external_llvm-af7da5cb993d1a2afad4816fe22c497d5adbef91.tar.gz external_llvm-af7da5cb993d1a2afad4816fe22c497d5adbef91.tar.bz2 | |
[Mips Assembler] Add support for OR macro with imediate opperand
Mips assembler supports macros that allows the OR instruction
to have an immediate parameter. This patch adds an instruction
alias that converts this macro into a Mips ORI instruction.
Contributer: Vladimir Medic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.td')
| -rw-r--r-- | lib/Target/Mips/MipsInstrInfo.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td index 1c523d5..043077f 100644 --- a/lib/Target/Mips/MipsInstrInfo.td +++ b/lib/Target/Mips/MipsInstrInfo.td @@ -1015,6 +1015,9 @@ def : InstAlias<"slt $rs, $rt, $imm", def : InstAlias<"xor $rs, $rt, $imm", (XORi CPURegsOpnd:$rs, CPURegsOpnd:$rt, simm16:$imm), 0>, Requires<[NotMips64]>; +def : InstAlias<"or $rs, $rt, $imm", + (ORi CPURegsOpnd:$rs, CPURegsOpnd:$rt, simm16:$imm), 0>, + Requires<[NotMips64]>; def : InstAlias<"nop", (SLL ZERO, ZERO, 0), 1>; def : InstAlias<"mfc0 $rt, $rd", (MFC0_3OP CPURegsOpnd:$rt, CPURegsOpnd:$rd, 0), 0>; |
