Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / emulation-amdgpu.s
blob707f0aeb909efae47470a1d5492d65ad2b415318
1 # REQUIRES: amdgpu
3 # RUN: llvm-mc -filetype=obj -triple=amdgcn-amd-amdhsa %s -o %t.o
4 # RUN: ld.lld %t.o -o %t
5 # RUN: llvm-readobj --file-headers %t | FileCheck %s
6 # RUN: ld.lld -m elf64_amdgpu %t.o -o %t
7 # RUN: llvm-readobj --file-headers %t | FileCheck %s
9 # CHECK: ElfHeader {
10 # CHECK-NEXT: Ident {
11 # CHECK-NEXT: Magic: (7F 45 4C 46)
12 # CHECK-NEXT: Class: 64-bit (0x2)
13 # CHECK-NEXT: DataEncoding: LittleEndian (0x1)
14 # CHECK-NEXT: FileVersion: 1
15 # CHECK-NEXT: OS/ABI: AMDGPU_HSA (0x40)
16 # CHECK-NEXT: ABIVersion: 2
17 # CHECK-NEXT: Unused: (00 00 00 00 00 00 00)
18 # CHECK-NEXT: }
19 # CHECK-NEXT: Type: Executable (0x2)
20 # CHECK-NEXT: Machine: EM_AMDGPU (0xE0)
21 # CHECK-NEXT: Version: 1
22 # CHECK-NEXT: Entry:
23 # CHECK-NEXT: ProgramHeaderOffset: 0x40
24 # CHECK-NEXT: SectionHeaderOffset:
25 # CHECK-NEXT: Flags [ (0x0)
26 # CHECK-NEXT: ]
27 # CHECK-NEXT: HeaderSize: 64
28 # CHECK-NEXT: ProgramHeaderEntrySize: 56
29 # CHECK-NEXT: ProgramHeaderCount:
30 # CHECK-NEXT: SectionHeaderEntrySize: 64
31 # CHECK-NEXT: SectionHeaderCount:
32 # CHECK-NEXT: StringTableSectionIndex:
33 # CHECK-NEXT: }
35 .globl _start
36 _start: