diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2016-06-20 16:59:44 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2016-06-20 16:59:44 +0000 |
| commit | 1c89eb7db0462524e360f62f16e04af7dbe0b880 (patch) | |
| tree | eba6c7e6c8d0b51196e8392bd789199d2529d697 /llvm/test/MC/AMDGPU | |
| parent | d616cf07b28678c1db82c0c40e1c656d414490a8 (diff) | |
| download | bcm5719-llvm-1c89eb7db0462524e360f62f16e04af7dbe0b880.tar.gz bcm5719-llvm-1c89eb7db0462524e360f62f16e04af7dbe0b880.zip | |
AMDGPU: Emit R_AMDGPU_ABS32_{HI,LO} for scratch buffer relocations
Reviewers: arsenm, rafael, kzhuravl
Subscribers: rafael, arsenm, llvm-commits, kzhuravl
Differential Revision: http://reviews.llvm.org/D21400
llvm-svn: 273166
Diffstat (limited to 'llvm/test/MC/AMDGPU')
| -rw-r--r-- | llvm/test/MC/AMDGPU/reloc.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/reloc.s b/llvm/test/MC/AMDGPU/reloc.s new file mode 100644 index 00000000000..ac7e863957a --- /dev/null +++ b/llvm/test/MC/AMDGPU/reloc.s @@ -0,0 +1,12 @@ +// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu=kaveri -show-encoding %s | llvm-readobj -relocations | FileCheck %s + +// CHECK: Relocations [ +// CHECK: R_AMDGPU_ABS32_LO SCRATCH_RSRC_DWORD0 0x0 +// CHECK: R_AMDGPU_ABS32_HI SCRATCH_RSRC_DWORD1 0x0 +// CHECK: ] + +kernel: + s_mov_b32 s0, SCRATCH_RSRC_DWORD0 + s_mov_b32 s1, SCRATCH_RSRC_DWORD1 + +.globl SCRATCH_RSRC_DWORD0 |

