[PPC] Add a test for toc-relative access on ppc64le.
authorSean Fertile <sfertile@ca.ibm.com>
Mon, 2 Apr 2018 15:42:07 +0000 (15:42 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Mon, 2 Apr 2018 15:42:07 +0000 (15:42 +0000)
commit6bf3fe124e820f378dfbed4d6aa919150d5d56b5
tree89646ea46f7fed6264ccfd0e0955d6754a4f678c
parent0831f57afe27021ff08dd24b8e77f2f1d4597c08
[PPC] Add a test for toc-relative access on ppc64le.

Adds a simple test for accessing a local global variable in the ElfV2 abi.
Checks that the toc base used is the expected offset from the .TOC. symbol,
and that the offsets for the global are calculated relative to the toc base.

llvm-svn: 328982
lld/test/ELF/ppc64le-toc-rel.s [new file with mode: 0644]