1## Test the `--file-headers` option of llvm-objdump for XCOFF object files. 2# RUN: yaml2obj %s -o %t1 3# RUN: llvm-objdump --file-headers %t1 |\ 4# RUN: FileCheck %s --check-prefix=CHECK32 --match-full-lines 5# RUN: yaml2obj %s -DMAGIC=0x1F7 -o %t2 6# RUN: llvm-objdump --file-headers %t2 |\ 7# RUN: FileCheck %s --check-prefix=CHECK64 --match-full-lines 8 9# CHECK32: {{.*}}file format aixcoff-rs6000 10# CHECK32-NEXT: architecture: powerpc 11# CHECK32-NEXT: start address: 0x00001111 12 13# CHECK64: {{.*}}file format aix5coff64-rs6000 14# CHECK64-NEXT: architecture: powerpc64 15# CHECK64-NEXT: start address: 0x0000000000001111 16 17--- !XCOFF 18FileHeader: 19 MagicNumber: [[MAGIC=0x1DF]] 20AuxiliaryHeader: 21 EntryPointAddr: 0x1111 22