llvm.org GIT mirror llvm / a0adb8d test / MC / AMDGPU / reloc.s
a0adb8d

Tree @a0adb8d (Download .tar.gz)

reloc.s @a0adb8draw · history · blame

// 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