Skip to content

Commit 13a56ca

Browse files
committed
[AMDGPU] Refactor and extend elf-header-flags-mach tests
* Factor out common elements of the input YAML document and use sed to macro replace the run line specific elements. * Add checks for the common elements which depend on the ELF class. * Use non-numeric suffix for temporary files to avoid merge conflicts. * Sort tests by GFX# ascending. * Group ELF and YAML tests by GFX#. Reviewed By: t-tye Differential Revision: https://reviews.llvm.org/D90245
1 parent 81b6aa0 commit 13a56ca

File tree

2 files changed

+265
-653
lines changed

2 files changed

+265
-653
lines changed

llvm/test/CodeGen/AMDGPU/elf-header-flags-mach.ll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@
5959
; RUN: llc -filetype=obj -march=amdgcn -mcpu=gfx1031 < %s | llvm-readobj -file-headers - | FileCheck --check-prefixes=ALL,ARCH-GCN,GFX1031 %s
6060
; RUN: llc -filetype=obj -march=amdgcn -mcpu=gfx1032 < %s | llvm-readobj -file-headers - | FileCheck --check-prefixes=ALL,ARCH-GCN,GFX1032 %s
6161

62+
; ARCH-R600: Format: elf32-amdgpu
6263
; ARCH-R600: Arch: r600
63-
; ARCH-GCN: Arch: amdgcn
64+
; ARCH-R600: AddressSize: 32bit
65+
66+
; ARCH-GCN: Format: elf64-amdgpu
67+
; ARCH-GCN: Arch: amdgcn
68+
; ARCH-GCN: AddressSize: 64bit
6469

6570
; ALL: Flags [
6671
; R600: EF_AMDGPU_MACH_R600_R600 (0x1)

0 commit comments

Comments
 (0)