2016-01-07 12:22:24 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri %s -o %t.o
|
2016-01-07 11:59:08 +08:00
|
|
|
# RUN: not lld -e kernel0 -flavor gnu %t.o -o %t
|
|
|
|
|
2016-01-07 13:02:38 +08:00
|
|
|
# REQUIRES: amdgpu
|
2016-01-07 12:22:24 +08:00
|
|
|
|
2016-01-07 11:59:08 +08:00
|
|
|
.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
|