1# RUN: yaml2obj -docnum=1 %s > %t.o.1 2# RUN: llvm-readobj -s -file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-XNACK-NONE %s 3# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-XNACK-NONE %s 4# RUN: yaml2obj -docnum=2 %s > %t.o.2 5# RUN: llvm-readobj -s -file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-XNACK-GFX801 %s 6# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-XNACK-GFX801 %s 7 8# ELF-ALL: Flags [ 9# ELF-XNACK-NONE: EF_AMDGPU_XNACK (0x100) 10# ELF-XNACK-GFX801: EF_AMDGPU_MACH_AMDGCN_GFX801 (0x28) 11# ELF-XNACK-GFX801: EF_AMDGPU_XNACK (0x100) 12# ELF-ALL: ] 13 14# YAML-XNACK-NONE: Flags: [ EF_AMDGPU_MACH_NONE, EF_AMDGPU_XNACK ] 15# YAML-XNACK-GFX801: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX801, EF_AMDGPU_XNACK ] 16 17# Doc1 18--- !ELF 19FileHeader: 20 Class: ELFCLASS64 21 Data: ELFDATA2LSB 22 OSABI: ELFOSABI_NONE 23 Type: ET_REL 24 Machine: EM_AMDGPU 25 Flags: [ EF_AMDGPU_XNACK ] 26... 27 28# Doc2 29--- !ELF 30FileHeader: 31 Class: ELFCLASS64 32 Data: ELFDATA2LSB 33 OSABI: ELFOSABI_NONE 34 Type: ET_REL 35 Machine: EM_AMDGPU 36 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX801, EF_AMDGPU_XNACK ] 37... 38