Fix ARM's b.w instruction for thumb 2 and the encoding T4. The branch target
authorKevin Enderby <enderby@apple.com>
Mon, 29 Oct 2012 23:27:20 +0000 (23:27 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 29 Oct 2012 23:27:20 +0000 (23:27 +0000)
commit6fd9624843aed753e468c3783778e73ec1c48342
treead68a75a73cc80f41ee6fd9d5b9322a75155a78b
parente878343c12be7a269574cf73dbf02a9e8785109b
Fix ARM's b.w instruction for thumb 2 and the encoding T4.  The branch target
is 24 bits not 20 and the decoding needed to correctly handle converting the
J1 and J2 bits to their I1 and I2 values to reconstruct the displacement.

llvm-svn: 166982
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
llvm/test/MC/ARM/thumb2-b.w-encodingT4.s [new file with mode: 0644]
llvm/test/MC/Disassembler/ARM/thumb2.txt