diff options
author | Hrvoje Varga <Hrvoje.Varga@imgtec.com> | 2016-05-13 11:32:53 +0000 |
---|---|---|
committer | Hrvoje Varga <Hrvoje.Varga@imgtec.com> | 2016-05-13 11:32:53 +0000 |
commit | 6f09cdfd485ba8426f6a6efaf65c2476932a3178 (patch) | |
tree | dc262cb0390673bfdce9ec99c0b044000cbc04e2 /llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp | |
parent | adc1abe77ef8f582c81e7df653a0ab3411de38fe (diff) | |
download | llvm-6f09cdfd485ba8426f6a6efaf65c2476932a3178.zip llvm-6f09cdfd485ba8426f6a6efaf65c2476932a3178.tar.gz llvm-6f09cdfd485ba8426f6a6efaf65c2476932a3178.tar.bz2 |
[mips][microMIPS] Implement APPEND, BPOSGE32C, MODSUB, MULSA.W.PH and MULSAQ_S.W.PH instructions
Differential Revision: http://reviews.llvm.org/D14117
llvm-svn: 269408
Diffstat (limited to 'llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp index c77cc47..5f1cf89 100644 --- a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp +++ b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp @@ -194,6 +194,11 @@ static DecodeStatus DecodeBranchTarget(MCInst &Inst, uint64_t Address, const void *Decoder); +static DecodeStatus DecodeBranchTarget1SImm16(MCInst &Inst, + unsigned Offset, + uint64_t Address, + const void *Decoder); + static DecodeStatus DecodeJumpTarget(MCInst &Inst, unsigned Insn, uint64_t Address, @@ -1827,6 +1832,15 @@ static DecodeStatus DecodeBranchTarget(MCInst &Inst, return MCDisassembler::Success; } +static DecodeStatus DecodeBranchTarget1SImm16(MCInst &Inst, + unsigned Offset, + uint64_t Address, + const void *Decoder) { + int32_t BranchOffset = (SignExtend32<16>(Offset) * 2); + Inst.addOperand(MCOperand::createImm(BranchOffset)); + return MCDisassembler::Success; +} + static DecodeStatus DecodeJumpTarget(MCInst &Inst, unsigned Insn, uint64_t Address, |