[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)
commitc1344684c9c319a02576c500af5656aedfe832df
treeb99fd6612ad498d9b27a7f02b16ddf9ce486f574
parentb1ce237a80e02a28e3153d1f719b16a831605e0c
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239769 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
test/CodeGen/Hexagon/simple_addend.ll [new file with mode: 0644]