[all-commits] [llvm/llvm-project] cc8e2b: [llvm-objcopy] Add AMDGPU case to binary-output-ta...
David Salinas via All-commits
all-commits at lists.llvm.org
Mon Jul 27 18:05:42 PDT 2026
Branch: refs/heads/users/dsalinas/amdgpu-llvm-objcopy
Home: https://github.com/llvm/llvm-project
Commit: cc8e2b806ef832eecb0c0aff094615d866e12f60
https://github.com/llvm/llvm-project/commit/cc8e2b806ef832eecb0c0aff094615d866e12f60
Author: dsalinas <dsalinas at amd.com>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M llvm/test/tools/llvm-objcopy/ELF/binary-output-target.test
Log Message:
-----------
[llvm-objcopy] Add AMDGPU case to binary-output-target.test
Add test coverage for converting binary input to elf64-amdgpu format,
verifying the output has the correct format string, arch (amdgpu),
and machine type (EM_AMDGPU 0xE0). Follows the same pattern as all
other architectures in this test file.
Commit: d111119cc00781381d5d09ba3c352351d8a8fe77
https://github.com/llvm/llvm-project/commit/d111119cc00781381d5d09ba3c352351d8a8fe77
Author: dsalinas <dsalinas at amd.com>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M llvm/test/tools/llvm-objcopy/ELF/binary-output-target.test
Log Message:
-----------
[llvm-objcopy] Fix AMDGPU arch checks in tests
ELFObjectFile.h getArch() for EM_AMDGPU returns Triple::UnknownArch
when e_flags & EF_AMDGPU_MACH is 0 (no GPU target specified). Only
when a MACH flag in the AMDGCN range is present does it return
Triple::amdgpu.
- cross-arch-headers.test: restore EF_AMDGPU_MACH_AMDGCN_GFX900 flag
on the input ELF so that after format conversion the output correctly
reports Arch: amdgpu.
- binary-output-target.test: expect Arch: unknown since converting
from raw binary input (-I binary) produces an ELF with e_flags=0
(no MACH flags), giving UnknownArch. This is correct behavior.
Compare: https://github.com/llvm/llvm-project/compare/67861a286d61...d111119cc007
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list