aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2015-08-12 12:45:16 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2015-08-12 12:45:16 +0000
commit366783e14c4c757102715bf8113ebf6696859f6c (patch)
tree4eca6b90b9f308ed4d4ae03f71e23dfa69a3e34e /llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
parent0c8beb1c95c0f59c14862d83fc1b83749ce028ce (diff)
downloadllvm-366783e14c4c757102715bf8113ebf6696859f6c.zip
llvm-366783e14c4c757102715bf8113ebf6696859f6c.tar.gz
llvm-366783e14c4c757102715bf8113ebf6696859f6c.tar.bz2
[mips][microMIPS] Create microMIPS64r6 subtarget and implement DALIGN, DAUI, DAHI, DATI, DEXT, DEXTM and DEXTU instructions
Differential Revision: http://reviews.llvm.org/D10923 llvm-svn: 244744
Diffstat (limited to 'llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp')
-rw-r--r--llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
index a34ba3b..38c6bb8 100644
--- a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
+++ b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
@@ -847,7 +847,7 @@ DecodeStatus MipsDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
if (hasMips32r6()) {
DEBUG(dbgs() << "Trying MicroMips32r632 table (32-bit instructions):\n");
// Calling the auto-generated decoder function.
- Result = decodeInstruction(DecoderTableMicroMips32r632, Instr, Insn, Address,
+ Result = decodeInstruction(DecoderTableMicroMipsR632, Instr, Insn, Address,
this, STI);
} else {
DEBUG(dbgs() << "Trying MicroMips32 table (32-bit instructions):\n");
@@ -855,6 +855,7 @@ DecodeStatus MipsDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
Result = decodeInstruction(DecoderTableMicroMips32, Instr, Insn, Address,
this, STI);
}
+
if (Result != MCDisassembler::Fail) {
Size = 4;
return Result;