2016-06-21 00:59:44 +08:00
|
|
|
// 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
|
2016-06-24 07:11:29 +08:00
|
|
|
// CHECK: R_AMDGPU_GOTPCREL global_var 0x0
|
2016-06-21 00:59:44 +08:00
|
|
|
// CHECK: ]
|
|
|
|
|
|
|
|
kernel:
|
|
|
|
s_mov_b32 s0, SCRATCH_RSRC_DWORD0
|
|
|
|
s_mov_b32 s1, SCRATCH_RSRC_DWORD1
|
2016-06-24 07:11:29 +08:00
|
|
|
s_mov_b32 s2, global_var@GOTPCREL
|
|
|
|
|
|
|
|
.globl global_var
|
2016-06-21 00:59:44 +08:00
|
|
|
|
|
|
|
.globl SCRATCH_RSRC_DWORD0
|