[mips][microMIPS] Fix issue with offset operand of BALC and BC instructions
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>
Mon, 30 Nov 2015 12:56:18 +0000 (12:56 +0000)
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>
Mon, 30 Nov 2015 12:56:18 +0000 (12:56 +0000)
commitb294a7b51a8ce78941701fec5e1fdcf806764bc9
treeb2cf78948a643ca46d333ada20585cc3ba42627c
parentbffca30038b9b302ecaa601025e67f1b578d0103
[mips][microMIPS] Fix issue with offset operand of BALC and BC instructions
Value of offset operand for microMIPS BALC and BC instructions is currently shifted 2 bits, but it should be 1 bit.
Differential Revision: http://reviews.llvm.org/D14770

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254296 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h
lib/Target/Mips/MicroMips32r6InstrInfo.td
test/MC/Disassembler/Mips/micromips32r6/valid.txt
test/MC/Mips/micromips32r6/valid.s