• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -show-encoding %s | FileCheck %s --check-prefix=ASM
2// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -show-encoding %s | llvm-readobj -s -sd | FileCheck %s --check-prefix=ELF
3
4// For compatibility reasons we treat convert .text sections to .hsatext
5
6// ELF: Section {
7
8// ELF: Name: .text
9// ELF: Type: SHT_PROGBITS (0x1)
10// ELF: Flags [ (0x6)
11// ELF: SHF_ALLOC (0x2)
12// ELF: SHF_EXECINSTR (0x4)
13// ELF: Size: 260
14// ELF: }
15
16.text
17// ASM: .text
18
19.hsa_code_object_version 1,0
20// ASM: .hsa_code_object_version 1,0
21
22.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
23// ASM: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
24
25.amd_kernel_code_t
26.end_amd_kernel_code_t
27
28s_endpgm
29