1 // RUN
: llvm-mc
-triple amdgcn-
-amdhsa
-mcpu
=kaveri
-mattr
=-code-object-v3
-show-encoding
%s | FileCheck
%s
--check-prefix
=ASM
2 // RUN
: llvm-mc
-filetype
=obj
-triple amdgcn-
-amdhsa
-mcpu
=kaveri
-mattr
=-code-object-v3
-show-encoding
%s | llvm-readobj
-S
--sd | FileCheck
%s
--check-prefix
=ELF
4 // For compatibility reasons we treat convert
.text sections to .hsatext
9 // ELF
: Type
: SHT_PROGBITS
(0x1)
11 // ELF
: SHF_ALLOC
(0x2)
12 // ELF
: SHF_EXECINSTR
(0x4)
19 .hsa_code_object_version 1,0
20 // ASM
: .hsa_code_object_version 1,0
22 .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
23 // ASM
: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
26 .end_amd_kernel_code_t