22 lines · plain
1## Test the `--file-headers` option of llvm-objdump for XCOFF object files.2# RUN: yaml2obj %s -o %t13# RUN: llvm-objdump --file-headers %t1 |\4# RUN: FileCheck %s --check-prefix=CHECK32 --match-full-lines5# RUN: yaml2obj %s -DMAGIC=0x1F7 -o %t26# RUN: llvm-objdump --file-headers %t2 |\7# RUN: FileCheck %s --check-prefix=CHECK64 --match-full-lines8 9# CHECK32: {{.*}}file format aixcoff-rs6000 10# CHECK32-NEXT: architecture: powerpc11# CHECK32-NEXT: start address: 0x0000111112 13# CHECK64: {{.*}}file format aix5coff64-rs600014# CHECK64-NEXT: architecture: powerpc6415# CHECK64-NEXT: start address: 0x000000000000111116 17--- !XCOFF18FileHeader:19 MagicNumber: [[MAGIC=0x1DF]]20AuxiliaryHeader:21 EntryPointAddr: 0x111122