Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/XCOFF/private-headers.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

53 lines
1.8 KiB
Plaintext

## Test the --private-headers option for XCOFF object files.
# RUN: yaml2obj -DMAGIC=0x1DF --docnum=1 %s -o %t_xcoff32.o
# RUN: yaml2obj -DMAGIC=0x1F7 --docnum=1 %s -o %t_xcoff64.o
# RUN: llvm-objdump --private-headers %t_xcoff32.o | \
# RUN: FileCheck %s --check-prefixes=CHECK32 --match-full-lines --strict-whitespace
# RUN: llvm-objdump --private-headers %t_xcoff64.o | \
# RUN: FileCheck %s --check-prefixes=CHECK64 --match-full-lines --strict-whitespace
--- !XCOFF
FileHeader:
MagicNumber: [[MAGIC]]
CreationTime: 1234
Sections:
- Name: .text
Flags: [ STYP_TEXT ]
SectionData: "9061FFF880820000"
- Name: .data
Flags: [ STYP_DATA ]
SectionData: "0000000000000FC0"
# CHECK32:---File Header:
# CHECK32-NEXT:Magic: 0x1df
# CHECK32-NEXT:NumberOfSections: 2
# CHECK32-NEXT:Timestamp: 1970-01-01 00:20:34 (1234)
# CHECK32-NEXT:SymbolTableOffset: 0x0
# CHECK32-NEXT:SymbolTableEntries: 0
# CHECK32-NEXT:OptionalHeaderSize: 0x0
# CHECK32-NEXT:Flags: 0x0
# CHECK64:---File Header:
# CHECK64-NEXT:Magic: 0x1f7
# CHECK64-NEXT:NumberOfSections: 2
# CHECK64-NEXT:Timestamp: 1970-01-01 00:20:34 (1234)
# CHECK64-NEXT:SymbolTableOffset: 0x0
# CHECK64-NEXT:SymbolTableEntries: 0
# CHECK64-NEXT:OptionalHeaderSize: 0x0
# CHECK64-NEXT:Flags: 0x0
## Test if the creation time of XCOFF is zero and the number of symbols is negative.
# RUN: yaml2obj -DMAGIC=0x1DF --docnum=2 %s -o %t_xcoff_timestamp.o
# RUN: llvm-objdump --private-headers %t_xcoff_timestamp.o | \
# RUN: FileCheck %s --match-full-lines
--- !XCOFF
FileHeader:
MagicNumber: 0x1DF
CreationTime: 0
EntriesInSymbolTable: -1
# CHECK: Timestamp: None (0)
# CHECK: SymbolTableEntries: Reserved Value (-1)