[Hexagon] PC-relative offsets are relative to packet start rather than the offset...
authorColin LeMahieu <colinl@codeaurora.org>
Mon, 15 Jun 2015 21:52:13 +0000 (21:52 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Mon, 15 Jun 2015 21:52:13 +0000 (21:52 +0000)
commita071a8e5b6b3624c669b7e005349d70f8f2112c0
tree672650f6abb080eb9e4f49b67cdc1043e765c041
parent9d8663f8d0d4f45088540851565d3d249687f209
[Hexagon] PC-relative offsets are relative to packet start rather than the offset of the relocation.  Set relocation addend and check it's correct in the ELF.

llvm-svn: 239769
llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
llvm/test/CodeGen/Hexagon/simple_addend.ll [new file with mode: 0644]