llvm-project/lld/test/ELF/amdgpu-duplicate-sym.s
Fangrui Song 2f1d79ee70 [ELF,test] Remove unneeded -relax-relocations from llvm-mc
This is option is x86-64 specific and should not be used by
AMDGPU/SystemZ. On x86-64, the option defaults to true and is
unnecessary.
2024-03-06 22:50:37 -08:00

27 lines
644 B
ArmAsm

# REQUIRES: amdgpu
# RUN: llvm-mc -filetype=obj -triple amdgcn-amd-amdhsa -mcpu=gfx1031 --position-independent %s -o %t.o
# We use lld-link on purpose to exercise -flavor.
# RUN: lld-link -flavor gnu -shared %t.o -o /dev/null
.text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1031"
.protected xxx ; @xxx
.type xxx,@object
.data
.globl xxx
xxx:
.long 123 ; 0x7b
.addrsig
.amdgpu_metadata
---
amdhsa.kernels: []
amdhsa.target: amdgcn-amd-amdhsa--gfx1031
amdhsa.version:
- 1
- 1
...
.end_amdgpu_metadata