xref: /llvm-project/lld/test/ELF/amdgpu-duplicate-sym.s (revision 2f1d79ee702148f452584367ddd0e3c81ecf3c64)
1# REQUIRES: amdgpu
2# RUN: llvm-mc -filetype=obj -triple amdgcn-amd-amdhsa -mcpu=gfx1031 --position-independent %s -o %t.o
3
4# We use lld-link on purpose to exercise -flavor.
5# RUN: lld-link -flavor gnu -shared %t.o -o /dev/null
6
7        .text
8        .amdgcn_target "amdgcn-amd-amdhsa--gfx1031"
9        .protected      xxx                     ; @xxx
10        .type   xxx,@object
11        .data
12        .globl  xxx
13xxx:
14        .long   123                             ; 0x7b
15
16        .addrsig
17        .amdgpu_metadata
18---
19amdhsa.kernels:  []
20amdhsa.target:   amdgcn-amd-amdhsa--gfx1031
21amdhsa.version:
22  - 1
23  - 1
24...
25
26        .end_amdgpu_metadata
27