summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/amdgpu-entry.s
blob: 2a47b1778de89834e5c88e97ad47f8f9e61042c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri %s -o %t.o
# RUN: not ld.lld -e kernel0 %t.o -o %t

# REQUIRES: amdgpu

.hsa_code_object_version 1,0
.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"

.hsatext
.globl kernel0
.align 256
.amdgpu_hsa_kernel kernel0
kernel0:
  s_endpgm
.Lfunc_end0:
  .size kernel0, .Lfunc_end0-kernel0
OpenPOWER on IntegriCloud