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