1 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch all \
2 RUN: | FileCheck %s -check-prefix UEXE-all
3 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -no-show-raw-insn -full-leading-addr -print-imm-hex -arch all \
4 RUN: | FileCheck %s -check-prefix UEXE-all
5 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch i386 \
6 RUN: | FileCheck %s -check-prefix UArchive-i386
7 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
8 RUN: | FileCheck %s -check-prefix FAT
9 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
10 RUN: -non-verbose | FileCheck %s -check-prefix NON-VERBOSE
11 RUN: llvm-objdump %p/Inputs/macho-universal64.x86_64.i386 -universal-headers \
12 RUN: -m | FileCheck %s -check-prefix FAT-64
14 UEXE-all: macho-universal.x86_64.i386 (architecture x86_64):
15 UEXE-all: (__TEXT,__text) section
17 UEXE-all: 0000000100000f60 pushq %rbp
18 UEXE-all: 0000000100000f61 movq %rsp, %rbp
19 UEXE-all: macho-universal.x86_64.i386 (architecture i386):
20 UEXE-all: (__TEXT,__text) section
22 UEXE-all: 00001fa0 pushl %ebp
23 UEXE-all: 00001fa1 movl %esp, %ebp
25 UArchive-i386: Archive : {{.*}}/macho-universal-archive.x86_64.i386
26 UArchive-i386: macho-universal-archive.x86_64.i386(foo.o):
27 UArchive-i386: (__TEXT,__text) section
29 UArchive-i386: 00000000 pushl %ebp
30 UArchive-i386: 00000001 movl %esp, %ebp
31 UArchive-i386: 00000003 popl %ebp
32 UArchive-i386: 00000004 retl
35 FAT: fat_magic FAT_MAGIC
37 FAT: architecture x86_64
38 FAT: cputype CPU_TYPE_X86_64
39 FAT: cpusubtype CPU_SUBTYPE_X86_64_ALL
40 FAT: capabilities CPU_SUBTYPE_LIB64
43 FAT: align 2^12 (4096)
44 FAT: architecture i386
45 FAT: cputype CPU_TYPE_I386
46 FAT: cpusubtype CPU_SUBTYPE_I386_ALL
50 FAT: align 2^12 (4096)
52 NON-VERBOSE: Fat headers
53 NON-VERBOSE: fat_magic 0xcafebabe
54 NON-VERBOSE: nfat_arch 2
55 NON-VERBOSE: architecture 0
56 NON-VERBOSE: cputype 16777223
57 NON-VERBOSE: cpusubtype 3
58 NON-VERBOSE: capabilities 0x80
59 NON-VERBOSE: offset 4096
60 NON-VERBOSE: size 4360
61 NON-VERBOSE: align 2^12 (4096)
62 NON-VERBOSE: architecture 1
63 NON-VERBOSE: cputype 7
64 NON-VERBOSE: cpusubtype 3
65 NON-VERBOSE: capabilities 0x0
66 NON-VERBOSE: offset 12288
67 NON-VERBOSE: size 4336
68 NON-VERBOSE: align 2^12 (4096)
71 FAT-64: fat_magic FAT_MAGIC_64