• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu=kaveri -show-encoding %s | llvm-readobj -relocations | FileCheck %s
2
3// CHECK: Relocations [
4// CHECK: R_AMDGPU_ABS32_LO SCRATCH_RSRC_DWORD0 0x0
5// CHECK: R_AMDGPU_ABS32_HI SCRATCH_RSRC_DWORD1 0x0
6// CHECK: R_AMDGPU_GOTPCREL global_var 0x0
7// CHECK: ]
8
9kernel:
10  s_mov_b32 s0, SCRATCH_RSRC_DWORD0
11  s_mov_b32 s1, SCRATCH_RSRC_DWORD1
12  s_mov_b32 s2, global_var@GOTPCREL
13
14.globl global_var
15
16.globl SCRATCH_RSRC_DWORD0
17