forked from OSchip/llvm-project
62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
# RUN: yaml2obj -docnum=1 %s > %t.o.1
|
|
# RUN: llvm-readobj -s -file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-NONE %s
|
|
# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-SRAM-ECC-NONE %s
|
|
# RUN: yaml2obj -docnum=2 %s > %t.o.2
|
|
# RUN: llvm-readobj -s -file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-GFX900 %s
|
|
# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-SRAM-ECC-GFX900 %s
|
|
# RUN: yaml2obj -docnum=3 %s > %t.o.3
|
|
# RUN: llvm-readobj -s -file-headers %t.o.3 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-XNACK-GFX900 %s
|
|
# RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-SRAM-ECC-XNACK-GFX900 %s
|
|
|
|
# ELF-SRAM-ECC-NONE: Flags [
|
|
# ELF-SRAM-ECC-NONE-NEXT: EF_AMDGPU_SRAM_ECC (0x200)
|
|
# ELF-SRAM-ECC-NONE-NEXT: ]
|
|
|
|
# ELF-SRAM-ECC-GFX900: Flags [
|
|
# ELF-SRAM-ECC-GFX900-NEXT: EF_AMDGPU_MACH_AMDGCN_GFX900 (0x2C)
|
|
# ELF-SRAM-ECC-GFX900-NEXT: EF_AMDGPU_SRAM_ECC (0x200)
|
|
# ELF-SRAM-ECC-GFX900-NEXT: ]
|
|
|
|
# ELF-SRAM-ECC-XNACK-GFX900: Flags [
|
|
# ELF-SRAM-ECC-XNACK-GFX900-NEXT: EF_AMDGPU_MACH_AMDGCN_GFX900 (0x2C)
|
|
# ELF-SRAM-ECC-XNACK-GFX900-NEXT: EF_AMDGPU_SRAM_ECC (0x200)
|
|
# ELF-SRAM-ECC-XNACK-GFX900-NEXT: EF_AMDGPU_XNACK (0x100)
|
|
# ELF-SRAM-ECC-XNACK-GFX900-NEXT: ]
|
|
|
|
# YAML-SRAM-ECC-NONE: Flags: [ EF_AMDGPU_MACH_NONE, EF_AMDGPU_SRAM_ECC ]
|
|
# YAML-SRAM-ECC-GFX900: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900, EF_AMDGPU_SRAM_ECC ]
|
|
# YAML-SRAM-ECC-XNACK-GFX900: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900, EF_AMDGPU_XNACK, EF_AMDGPU_SRAM_ECC ]
|
|
|
|
# Doc1
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_NONE
|
|
Type: ET_REL
|
|
Machine: EM_AMDGPU
|
|
Flags: [ EF_AMDGPU_SRAM_ECC ]
|
|
...
|
|
|
|
# Doc2
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_NONE
|
|
Type: ET_REL
|
|
Machine: EM_AMDGPU
|
|
Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900, EF_AMDGPU_SRAM_ECC ]
|
|
...
|
|
|
|
# Doc3
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
OSABI: ELFOSABI_NONE
|
|
Type: ET_REL
|
|
Machine: EM_AMDGPU
|
|
Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900, EF_AMDGPU_XNACK, EF_AMDGPU_SRAM_ECC ]
|
|
...
|