OSDN Git Service

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)
commitb8b1bfcdcb2ccef76ece3597105236fb1f930b37
tree42a132e07803557f2c32aea5267b7635b0cfd1b1
parent8fa77e005c42559d53973c4742b4c983021294b8
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/MSP430/MSP430BranchSelector.cpp
test/CodeGen/MSP430/BranchSelector.ll [new file with mode: 0644]