Skip to content

Commit 5fb376c

Browse files
committed
Update cross-arch-headers.test
1 parent e8f3278 commit 5fb376c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# and DWO output.
33
# Note that we don't actually need any DWARF to produce the DWO file.
44

5-
# RUN: yaml2obj %s -o %t.o
6-
# RUN: yaml2obj -DFLAGS=[EF_AMDGPU_MACH_AMDGCN_GFX900] %s -o %t.o
5+
# RUN: yaml2obj -DMACHINE=EM_NONE -DFLAGS="" %s -o %t.o
6+
# RUN: yaml2obj -DMACHINE=EM_AMDGPU -DFLAGS=EF_AMDGPU_MACH_AMDGCN_GFX900 %s -o %t-amdgpu.o
77

88
# Without --output-format, the format should match the input.
99
# RUN: llvm-objcopy %t.o %t.default.o --split-dwo=%t.default.dwo
@@ -122,19 +122,20 @@
122122
# RUN: llvm-readobj --file-headers %t.elf64_s390.o | FileCheck %s --check-prefixes=CHECK,BE,S390X,64,SYSV
123123
# RUN: llvm-readobj --file-headers %t.elf64_s390.dwo | FileCheck %s --check-prefixes=CHECK,BE,S390X,64,SYSV
124124

125-
# RUN: llvm-objcopy %t.o -O elf64-amdgpu %t.elf64_amdgpu.o --split-dwo=%t.elf64_amdgpu.dwo
126-
# RUN: llvm-readobj --file-headers %t.elf64_amdgpu.o | FileCheck %s --check-prefixes=CHECK,LE,AMDGPU,64,SYSV
127-
# RUN: llvm-readobj --file-headers %t.elf64_amdgpu.dwo | FileCheck %s --check-prefixes=CHECK,LE,AMDGPU,64,SYSV
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
128129

129130
!ELF
130131
FileHeader:
131132
Class: ELFCLASS32
132133
Data: ELFDATA2LSB
133134
Type: ET_EXEC
134135
# Arbitrary values that do not match any value we convert to via --output-format.
135-
Machine: EM_NONE
136+
Machine: [[MACHINE]]
137+
Flags: [ [[FLAGS]] ]
136138
OSABI: ELFOSABI_STANDALONE
137-
Flags: [[FLAGS=<none>]]
138139
Sections:
139140
- Name: .text
140141
Type: SHT_PROGBITS
@@ -160,7 +161,7 @@ Symbols:
160161
# I386-SAME: i386
161162
# IAMCU-SAME: iamcu
162163
# AARCH-SAME: aarch64
163-
# AMDGPU-SAME: elf64-amdgpu
164+
# AMDGPU-SAME: amdgpu
164165
# ARM-SAME: littlearm
165166
# HEXAGON-SAME: hexagon
166167
# LA32-SAME: loongarch{{$}}

0 commit comments

Comments
 (0)