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