Fangrui Song | 55c81d4 | 2020-01-21 17:02:25 -0800 | [diff] [blame] | 1 | # RUN: yaml2obj %s -o %t |
Shoaib Meenai | 61f7df5 | 2019-06-07 20:47:58 +0000 | [diff] [blame] | 2 | # RUN: llvm-lipo %t -archs | FileCheck %s |
3 | # CHECK: i386 x86_64 | ||||
4 | |||||
5 | --- !fat-mach-o | ||||
6 | FatHeader: | ||||
7 | magic: 0xCAFEBABE | ||||
8 | nfat_arch: 2 | ||||
9 | FatArchs: | ||||
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 | ||||
20 | Slices: | ||||
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 | ... |