Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / Object / AMDGPU / elf-header-flags-xnack.yaml
blobe9c834edb975adc191d524ddd2dd6025ad0f931b
1 # RUN: yaml2obj --docnum=1 %s -o %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 -o %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
8 # ELF-ALL:          Flags [
9 # ELF-XNACK-NONE:     EF_AMDGPU_FEATURE_XNACK_V3   (0x100)
10 # ELF-XNACK-GFX801:   EF_AMDGPU_FEATURE_XNACK_V3   (0x100)
11 # ELF-XNACK-GFX801:   EF_AMDGPU_MACH_AMDGCN_GFX801 (0x28)
12 # ELF-ALL:          ]
14 # YAML-XNACK-NONE:   Flags: [ EF_AMDGPU_MACH_NONE, EF_AMDGPU_FEATURE_XNACK_V3 ]
15 # YAML-XNACK-GFX801: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX801, EF_AMDGPU_FEATURE_XNACK_V3 ]
17 # Doc1
18 --- !ELF
19 FileHeader:
20   Class:   ELFCLASS64
21   Data:    ELFDATA2LSB
22   OSABI:   ELFOSABI_NONE
23   Type:    ET_REL
24   Machine: EM_AMDGPU
25   Flags:   [ EF_AMDGPU_FEATURE_XNACK_V3 ]
26 ...
28 # Doc2
29 --- !ELF
30 FileHeader:
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_FEATURE_XNACK_V3 ]
37 ...