llvm.org GIT mirror llvm / master test / MC / AMDGPU / hsa-text.s
master

Tree @master (Download .tar.gz)

hsa-text.s @master

d0eb792
a60f216
1566e71
 
 
 
 
66eb4d1
1566e71
66eb4d1
1566e71
 
 
 
 
66eb4d1
 
 
1566e71
 
 
 
 
 
 
 
 
 
// RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM
// 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

// For compatibility reasons we treat convert .text sections to .hsatext

// ELF: Section {

// ELF: Name: .text
// ELF: Type: SHT_PROGBITS (0x1)
// ELF: Flags [ (0x6)
// ELF: SHF_ALLOC (0x2)
// ELF: SHF_EXECINSTR (0x4)
// ELF: Size: 260
// ELF: }

.text
// ASM: .text

.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