diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2015-08-12 12:45:16 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2015-08-12 12:45:16 +0000 |
commit | 366783e14c4c757102715bf8113ebf6696859f6c (patch) | |
tree | 4eca6b90b9f308ed4d4ae03f71e23dfa69a3e34e /llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp | |
parent | 0c8beb1c95c0f59c14862d83fc1b83749ce028ce (diff) | |
download | llvm-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.cpp | 3 |
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; |