Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-readobj/XCOFF/file-header.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

65 lines
2.1 KiB
Plaintext

## This is a general test for the --file-header option.
# RUN: yaml2obj %s -o %t1
# RUN: llvm-readobj %t1 --file-header | \
# RUN: FileCheck %s --strict-whitespace --match-full-lines --check-prefix=FILEHEADER32
# FILEHEADER32:Format: aixcoff-rs6000
# FILEHEADER32-NEXT:Arch: powerpc
# FILEHEADER32-NEXT:AddressSize: 32bit
# FILEHEADER32-NEXT:FileHeader {
# FILEHEADER32-NEXT: Magic: 0x1DF
# FILEHEADER32-NEXT: NumberOfSections: 1
# FILEHEADER32-NEXT: TimeStamp: 1970-01-01 00:00:01 (0x1)
# FILEHEADER32-NEXT: SymbolTableOffset: 0x3C
# FILEHEADER32-NEXT: SymbolTableEntries: 1
# FILEHEADER32-NEXT: OptionalHeaderSize: 0x0
# FILEHEADER32-NEXT: Flags: 0x12
# FILEHEADER32-NEXT:}
--- !XCOFF
FileHeader:
MagicNumber: [[MAGIC=0x01DF]]
CreationTime: [[CREATTIME=1]]
EntriesInSymbolTable: [[SYMBOLCOUNT=1]]
NumberOfSections: 1
AuxiliaryHeaderSize: 0
Flags: 0x12
Sections:
- Name: .text
Symbols:
- Name: foo
# RUN: yaml2obj -DMAGIC=0x01F7 -DCREATTIME=0 %s -o %t2
# RUN: llvm-readobj %t2 --file-header | \
# RUN: FileCheck %s --strict-whitespace --match-full-lines --check-prefix=FILEHEADER64
# FILEHEADER64:Format: aix5coff64-rs6000
# FILEHEADER64-NEXT:Arch: powerpc64
# FILEHEADER64-NEXT:AddressSize: 64bit
# FILEHEADER64-NEXT:FileHeader {
# FILEHEADER64-NEXT: Magic: 0x1F7
# FILEHEADER64-NEXT: NumberOfSections: 1
# FILEHEADER64-NEXT: TimeStamp: None (0x0)
# FILEHEADER64-NEXT: SymbolTableOffset: 0x60
# FILEHEADER64-NEXT: SymbolTableEntries: 1
# FILEHEADER64-NEXT: OptionalHeaderSize: 0x0
# FILEHEADER64-NEXT: Flags: 0x12
# FILEHEADER64-NEXT:}
# RUN: yaml2obj -DCREATTIME=-1 %s -o %t3
# RUN: llvm-readobj %t3 --file-header | \
# RUN: FileCheck %s --strict-whitespace --match-full-lines --check-prefix=NEGTIME
# NEGTIME:FileHeader {
# NEGTIME: TimeStamp: Reserved Value (0xFFFFFFFF)
# NEGTIME:}
# RUN: yaml2obj -DSYMBOLCOUNT=-1 %s -o %t4
# RUN: llvm-readobj %t4 --file-header | \
# RUN: FileCheck %s --strict-whitespace --match-full-lines --check-prefix=NEGSYMCOUNT
# NEGSYMCOUNT:FileHeader {
# NEGSYMCOUNT: SymbolTableEntries: Reserved Value (0xFFFFFFFF)
# NEGSYMCOUNT:}