blob: 32825831a51f6e98d7326be31f29de7448402168 [file] [log] [blame]
Fangrui Song55c81d42020-01-21 17:02:25 -08001# RUN: yaml2obj %s -o %t
Shoaib Meenai64423172019-06-21 21:59:01 +00002
Shoaib Meenai995798d2019-07-04 00:17:02 +00003# RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_FILE %s
4# ARCH_NOT_IN_FILE: does not contain the specified architecture arm64_32 to thin it to
Shoaib Meenai64423172019-06-21 21:59:01 +00005
6# RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH %s
7# INVALID_ARCH: Invalid architecture: aarch101
8
Fangrui Song55c81d42020-01-21 17:02:25 -08009# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
Shoaib Meenai64423172019-06-21 21:59:01 +000010# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
Fangrui Song55c81d42020-01-21 17:02:25 -080011# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o
Shoaib Meenai64423172019-06-21 21:59:01 +000012# RUN: cmp %t32.o %t-basic32.o
13
14--- !fat-mach-o
15FatHeader:
16 magic: 0xCAFEBABE
17 nfat_arch: 2
18FatArchs:
19 - cputype: 0x00000007
20 cpusubtype: 0x00000003
21 offset: 0x0000000000001000
22 size: 28
23 align: 12
24 - cputype: 0x01000007
25 cpusubtype: 0x00000003
26 offset: 0x0000000000002000
27 size: 32
28 align: 12
29Slices:
30 - !mach-o
31 FileHeader:
32 magic: 0xFEEDFACE
33 cputype: 0x00000007
34 cpusubtype: 0x00000003
35 filetype: 0x00000001
36 ncmds: 0
37 sizeofcmds: 0
38 flags: 0x00002000
39 - !mach-o
40 FileHeader:
41 magic: 0xFEEDFACF
42 cputype: 0x01000007
43 cpusubtype: 0x00000003
44 filetype: 0x00000001
45 ncmds: 0
46 sizeofcmds: 0
47 flags: 0x00002000
48 reserved: 0x00000000
49...