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)
commit445ba85b8d7bc8fb4689ca22131cadc80a034705
treebd41864548c0d0ab5ce37dbe87f1904fdb6b6c7a
parentc1ed096b6b34c5f9af1a856aef5978144b20f31e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166982 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
test/MC/ARM/thumb2-b.w-encodingT4.s [new file with mode: 0644]
test/MC/Disassembler/ARM/thumb2.txt