50 lines · plain
1# RUN: yaml2obj %s -o %t2 3# RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_FILE %s4# ARCH_NOT_IN_FILE: does not contain the specified architecture arm64_32 to thin it to5 6# RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH %s7# INVALID_ARCH: Invalid architecture: aarch1018 9# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o10# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o11# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o12# RUN: cmp %t32.o %t-basic32.o13 14--- !fat-mach-o15FatHeader:16 magic: 0xCAFEBABE17 nfat_arch: 218FatArchs:19 - cputype: 0x0000000720 cpusubtype: 0x0000000321 offset: 0x000000000000100022 size: 2823 align: 1224 - cputype: 0x0100000725 cpusubtype: 0x0000000326 offset: 0x000000000000200027 size: 3228 align: 1229Slices:30 - !mach-o31 FileHeader:32 magic: 0xFEEDFACE33 cputype: 0x0000000734 cpusubtype: 0x0000000335 filetype: 0x0000000136 ncmds: 037 sizeofcmds: 038 flags: 0x0000200039 - !mach-o40 FileHeader:41 magic: 0xFEEDFACF42 cputype: 0x0100000743 cpusubtype: 0x0000000344 filetype: 0x0000000145 ncmds: 046 sizeofcmds: 047 flags: 0x0000200048 reserved: 0x0000000049...50