1 # RUN: yaml2obj --docnum=1 %s -o %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 -o %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 -o %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
11 # ELF-HSA: OS/ABI: AMDGPU_HSA (0x40)
12 # ELF-PAL: OS/ABI: AMDGPU_PAL (0x41)
13 # ELF-MESA3D: OS/ABI: AMDGPU_MESA3D (0x42)
15 # YAML-HSA: OSABI: ELFOSABI_AMDGPU_HSA
16 # YAML-PAL: OSABI: ELFOSABI_AMDGPU_PAL
17 # YAML-MESA3D: OSABI: ELFOSABI_AMDGPU_MESA3D
24 OSABI: ELFOSABI_AMDGPU_HSA
35 OSABI: ELFOSABI_AMDGPU_PAL
46 OSABI: ELFOSABI_AMDGPU_MESA3D