llvm/test/tools/llvm-readobj/amdgpu-elf-defs.test
Tom Stellard 9baa291a86 ELF: Add AMDGPU specific defintions
Reviewers: rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11458

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244303 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-07 01:35:24 +00:00

29 lines
713 B
Plaintext

RUN: llvm-readobj -program-headers -sections -symbols -file-headers \
RUN: %p/Inputs/trivial.elf-amdhsa-kaveri | FileCheck %s
CHECK: ElfHeader {
CHECK: Ident {
CHECK: Class: 64-bit (0x2)
CHECK: DataEncoding: LittleEndian (0x1)
CHECK: Machine: EM_AMDGPU (0xE0)
CHECK: Section {
CHECK: Name: .text
CHECK: Type: SHT_PROGBITS (0x1)
CHECK: Flags [ (0xC00007
CHECK: SHF_ALLOC (0x2)
CHECK: SHF_AMDGPU_HSA_AGENT (0x800000)
CHECK: SHF_AMDGPU_HSA_CODE (0x400000)
CHECK: SHF_EXECINSTR (0x4)
CHECK: SHF_WRITE (0x1)
CHECK: Symbol {
CHECK: Name: hello_world
CHECK: Value: 0x0
CHECK: Binding: Local (0x0)
CHECK: Type: AMDGPU_HSA_KERNEL (0xA)
CHECK: ProgramHeader {
CHECK: Type: PT_AMDGPU_HSA_LOAD_CODE_AGENT (0x60000003)