• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj -docnum=1 %s > %t.o.1
2# RUN: llvm-readobj -s -file-headers %t.o.1 | FileCheck --check-prefixes=ELF-HSA %s
3# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-HSA %s
4# RUN: yaml2obj -docnum=2 %s > %t.o.2
5# RUN: llvm-readobj -s -file-headers %t.o.2 | FileCheck --check-prefixes=ELF-PAL %s
6# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-PAL %s
7# RUN: yaml2obj -docnum=3 %s > %t.o.3
8# RUN: llvm-readobj -s -file-headers %t.o.3 | FileCheck --check-prefixes=ELF-MESA3D %s
9# RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-MESA3D %s
10
11# ELF-HSA:    OS/ABI: AMDGPU_HSA    (0x40)
12# ELF-PAL:    OS/ABI: AMDGPU_PAL    (0x41)
13# ELF-MESA3D: OS/ABI: AMDGPU_MESA3D (0x42)
14
15# YAML-HSA:    OSABI: ELFOSABI_AMDGPU_HSA
16# YAML-PAL:    OSABI: ELFOSABI_AMDGPU_PAL
17# YAML-MESA3D: OSABI: ELFOSABI_AMDGPU_MESA3D
18
19# Doc1
20--- !ELF
21FileHeader:
22  Class:   ELFCLASS64
23  Data:    ELFDATA2LSB
24  OSABI:   ELFOSABI_AMDGPU_HSA
25  Type:    ET_REL
26  Machine: EM_AMDGPU
27  Flags:   [ ]
28...
29
30# Doc2
31--- !ELF
32FileHeader:
33  Class:   ELFCLASS64
34  Data:    ELFDATA2LSB
35  OSABI:   ELFOSABI_AMDGPU_PAL
36  Type:    ET_REL
37  Machine: EM_AMDGPU
38  Flags:   [ ]
39...
40
41# Doc3
42--- !ELF
43FileHeader:
44  Class:   ELFCLASS64
45  Data:    ELFDATA2LSB
46  OSABI:   ELFOSABI_AMDGPU_MESA3D
47  Type:    ET_REL
48  Machine: EM_AMDGPU
49  Flags:   [ ]
50...
51