Fix PR27500: on MSP430 the branch destination offset is measured in words, not bytes.
authorAnton Korobeynikov <anton@korobeynikov.info>
Fri, 19 Aug 2016 14:07:10 +0000 (14:07 +0000)
committerAnton Korobeynikov <anton@korobeynikov.info>
Fri, 19 Aug 2016 14:07:10 +0000 (14:07 +0000)
commit2aae31a945def8be520be5cd05a41f423280b4a2
tree75ec7e46a701ba417f03b40f619bc45e2eb0cff7
parent6421b934ec7c643e14d637bfc69cc5fe7f5e993b
Fix PR27500: on MSP430 the branch destination offset is measured in words, not bytes.
In addition, the branch instructions will have proper BB destinations, not offsets, like before.

Patch by Vadzim Dambrouski!

Differential Revision: https://reviews.llvm.org/D20162

llvm-svn: 279242
llvm/lib/Target/MSP430/MSP430BranchSelector.cpp
llvm/test/CodeGen/MSP430/BranchSelector.ll [new file with mode: 0644]