2 Commits

Author SHA1 Message Date
Ron Lieberman
12dc55cb60 [Hexagon] Improve test to check for @PCREL, only run llc, not opt -> llc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278796 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-16 13:10:09 +00:00
Ron Lieberman
26d2a23314 Fix unsupported relocation type R_HEX_6_X' for symbol .rodata
LowerTargetConstantPool is not properly setting the TargetFlag to indicate
desired relocation. Coding error, the offset parameter was omitted, so the
TargetFlag was used as the offset, and the TargetFlag defaulted to zero.

This only affects -fpic compilation, and only those items created in a
Constant Pool, for example a vector of constants. Halide ran into this issue.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278614 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-13 23:41:11 +00:00