blob: bef267b957d24ffb40dae777e80d7f0f5b74da3a [file] [log] [blame]
Fangrui Song55c81d42020-01-21 17:02:25 -08001# RUN: yaml2obj %s -o %t
Shoaib Meenai61f7df52019-06-07 20:47:58 +00002# RUN: llvm-lipo %t -archs | FileCheck %s
3# CHECK: i386 x86_64
4
5--- !fat-mach-o
6FatHeader:
7 magic: 0xCAFEBABE
8 nfat_arch: 2
9FatArchs:
10 - cputype: 0x00000007
11 cpusubtype: 0x00000003
12 offset: 0x0000000000001000
13 size: 28
14 align: 12
15 - cputype: 0x01000007
16 cpusubtype: 0x00000003
17 offset: 0x0000000000002000
18 size: 32
19 align: 12
20Slices:
21 - !mach-o
22 FileHeader:
23 magic: 0xFEEDFACE
24 cputype: 0x00000007
25 cpusubtype: 0x00000003
26 filetype: 0x00000001
27 ncmds: 0
28 sizeofcmds: 0
29 flags: 0x00002000
30 - !mach-o
31 FileHeader:
32 magic: 0xFEEDFACF
33 cputype: 0x01000007
34 cpusubtype: 0x00000003
35 filetype: 0x00000001
36 ncmds: 0
37 sizeofcmds: 0
38 flags: 0x00002000
39 reserved: 0x00000000
40...