[mips][microMIPS] Implement disassembler support for 16-bit instructions
authorJozef Kolek <jozef.kolek@imgtec.com>
Mon, 24 Nov 2014 13:29:59 +0000 (13:29 +0000)
committerJozef Kolek <jozef.kolek@imgtec.com>
Mon, 24 Nov 2014 13:29:59 +0000 (13:29 +0000)
commit18700de8fc1c8d772969a877ec36e7a67212ce67
tree1e525a2edaba8bcec6f240fb17a54c06e091b606
parenta1e1f01699d27a5905c917a06a96b57625963d4e
[mips][microMIPS] Implement disassembler support for 16-bit instructions

With the help of new method readInstruction16() two bytes are read and
decodeInstruction() is called with DecoderTableMicroMips16, if this fails
four bytes are read and decodeInstruction() is called with
DecoderTableMicroMips32.

Differential Revision: http://reviews.llvm.org/D6149

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
lib/Target/Mips/MipsRegisterInfo.td
test/MC/Disassembler/Mips/micromips.txt
test/MC/Disassembler/Mips/micromips_le.txt