[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)
commitea22c4cfbb04330578b7548066f743563c079c95
tree36f13565e5e8c6aaea3b404596b21ff986845ddf
parent23e2cfa834adc8a22e5d3aa3772888596d632896
[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

llvm-svn: 222648
llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
llvm/lib/Target/Mips/MipsRegisterInfo.td
llvm/test/MC/Disassembler/Mips/micromips.txt
llvm/test/MC/Disassembler/Mips/micromips_le.txt