22# and DWO output.
33# Note that we don't actually need any DWARF to produce the DWO file.
44
5- # RUN: yaml2obj -DMACHINE=EM_NONE %s -o %t.o
6- # RUN: yaml2obj -DMACHINE=EM_AMDGPU -DFLAGS=[EF_AMDGPU_MACH_AMDGCN_GFX900] %s -o %t-amdgpu.o
5+ # RUN: yaml2obj %s -o %t.o
76
87# Without --output-format, the format should match the input.
98# RUN: llvm-objcopy %t.o %t.default.o --split-dwo=%t.default.dwo
122121# RUN: llvm-readobj --file-headers %t.elf64_s390.o | FileCheck %s --check-prefixes=CHECK,BE,S390X,64,SYSV
123122# RUN: llvm-readobj --file-headers %t.elf64_s390.dwo | FileCheck %s --check-prefixes=CHECK,BE,S390X,64,SYSV
124123
125-
126- # RUN: llvm-objcopy %t-amdgpu.o -O elf64-amdgpu %t-amdgpu.elf64_amdgpu.o --split-dwo=%t-amdgpu.elf64_amdgpu.dwo
127- # RUN: llvm-readobj --file-headers %t-amdgpu.elf64_amdgpu.o | FileCheck %s --check-prefixes=CHECK,LE,AMDGPU,64,SYSV
128- # RUN: llvm-readobj --file-headers %t-amdgpu.elf64_amdgpu.dwo | FileCheck %s --check-prefixes=CHECK,LE,AMDGPU,64,SYSV
129-
130124!ELF
131125FileHeader:
132126 Class: ELFCLASS32
133127 Data: ELFDATA2LSB
134128 Type: ET_EXEC
135129 # Arbitrary values that do not match any value we convert to via --output-format.
136- Machine: [[MACHINE]]
137- Flags: [[FLAGS=<none>]]
138130 OSABI: ELFOSABI_STANDALONE
139131Sections:
140132 - Name: .text
@@ -161,7 +153,6 @@ Symbols:
161153# I386-SAME: i386
162154# IAMCU-SAME: iamcu
163155# AARCH-SAME: aarch64
164- # AMDGPU-SAME: amdgpu
165156# ARM-SAME: littlearm
166157# HEXAGON-SAME: hexagon
167158# LA32-SAME: loongarch{{$}}
@@ -179,7 +170,6 @@ Symbols:
179170# I386-NEXT: Arch: i386
180171# IAMCU-NEXT: Arch: i386
181172# AARCH-NEXT: Arch: aarch64
182- # AMDGPU-NEXT: Arch: amdgcn
183173# ARM-NEXT: Arch: arm
184174# HEXAGON-NEXT: Arch: hexagon
185175# LA32-NEXT: Arch: loongarch32
@@ -213,7 +203,6 @@ Symbols:
213203# DEFAULT: OS/ABI: Standalone (0xFF)
214204
215205# AARCH: Machine: EM_AARCH64 (0xB7)
216- # AMDGPU: Machine: EM_AMDGPU (0xE0)
217206# ARM: Machine: EM_ARM (0x28)
218207# HEXAGON: Machine: EM_HEXAGON (0xA4)
219208# I386: Machine: EM_386 (0x3)
0 commit comments