2015-09-26 05:41:28 +08:00
|
|
|
// RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -show-encoding %s | FileCheck %s --check-prefix=ASM
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -show-encoding %s | llvm-readobj -s -sd | FileCheck %s --check-prefix=ELF
|
|
|
|
|
|
|
|
// For compatibility reasons we treat convert .text sections to .hsatext
|
|
|
|
|
|
|
|
// ELF: Section {
|
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
// ELF: Name: .text
|
2015-09-26 05:41:28 +08:00
|
|
|
// ELF: Type: SHT_PROGBITS (0x1)
|
2016-05-06 01:03:33 +08:00
|
|
|
// ELF: Flags [ (0x6)
|
2015-09-26 05:41:28 +08:00
|
|
|
// ELF: SHF_ALLOC (0x2)
|
|
|
|
// ELF: SHF_EXECINSTR (0x4)
|
|
|
|
// ELF: Size: 260
|
|
|
|
// ELF: }
|
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
.text
|
|
|
|
// ASM: .text
|
|
|
|
|
2015-09-26 05:41:28 +08:00
|
|
|
.hsa_code_object_version 1,0
|
|
|
|
// ASM: .hsa_code_object_version 1,0
|
|
|
|
|
|
|
|
.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
|
|
|
|
// ASM: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
|
|
|
|
|
|
|
|
.amd_kernel_code_t
|
|
|
|
.end_amd_kernel_code_t
|
|
|
|
|
|
|
|
s_endpgm
|