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