summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-06-23 23:11:29 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-06-23 23:11:29 +0000
commit14416ae6cdb3c15fbe054682e803080969165379 (patch)
treedda2826b125116df16a02d29e33c1addb3418835 /llvm/test
parent606f178aeb0feced07a7384bd44fdc750d58728b (diff)
downloadbcm5719-llvm-14416ae6cdb3c15fbe054682e803080969165379.tar.gz
bcm5719-llvm-14416ae6cdb3c15fbe054682e803080969165379.zip
Support/ELF: Add R_AMDGPU_GOTPCREL relocation
Summary: We will start generating this in a future patch. Reviewers: arsenm, kzhuravl, rafael, ruiu, tony-tye Subscribers: arsenm, llvm-commits, kzhuravl Differential Revision: http://reviews.llvm.org/D21482 llvm-svn: 273628
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AMDGPU/reloc.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/reloc.s b/llvm/test/MC/AMDGPU/reloc.s
index ac7e863957a..14b0e04949c 100644
--- a/llvm/test/MC/AMDGPU/reloc.s
+++ b/llvm/test/MC/AMDGPU/reloc.s
@@ -3,10 +3,14 @@
// CHECK: Relocations [
// CHECK: R_AMDGPU_ABS32_LO SCRATCH_RSRC_DWORD0 0x0
// CHECK: R_AMDGPU_ABS32_HI SCRATCH_RSRC_DWORD1 0x0
+// CHECK: R_AMDGPU_GOTPCREL global_var 0x0
// CHECK: ]
kernel:
s_mov_b32 s0, SCRATCH_RSRC_DWORD0
s_mov_b32 s1, SCRATCH_RSRC_DWORD1
+ s_mov_b32 s2, global_var@GOTPCREL
+
+.globl global_var
.globl SCRATCH_RSRC_DWORD0
OpenPOWER on IntegriCloud