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 RUN: llvm-objdump %p/Inputs/macho-universal64.x86_64.i386 -universal-headers \ 10 RUN: -m | FileCheck %s -check-prefix FAT-64 11 12 UEXE-all: macho-universal.x86_64.i386 (architecture x86_64): 13 UEXE-all: (__TEXT,__text) section 14 UEXE-all: _main: 15 UEXE-all: 0000000100000f60 pushq %rbp 16 UEXE-all: 0000000100000f61 movq %rsp, %rbp 17 UEXE-all: macho-universal.x86_64.i386 (architecture i386): 18 UEXE-all: (__TEXT,__text) section 19 UEXE-all: _main: 20 UEXE-all: 00001fa0 pushl %ebp 21 UEXE-all: 00001fa1 movl %esp, %ebp 22 23 UArchive-i386: Archive : {{.*}}/macho-universal-archive.x86_64.i386 24 UArchive-i386: macho-universal-archive.x86_64.i386(foo.o): 25 UArchive-i386: (__TEXT,__text) section 26 UArchive-i386: _foo: 27 UArchive-i386: 00000000 pushl %ebp 28 UArchive-i386: 00000001 movl %esp, %ebp 29 UArchive-i386: 00000003 popl %ebp 30 UArchive-i386: 00000004 retl 31 32 FAT: Fat headers 33 FAT: fat_magic FAT_MAGIC 34 FAT: nfat_arch 2 35 FAT: architecture x86_64 36 FAT: cputype CPU_TYPE_X86_64 37 FAT: cpusubtype CPU_SUBTYPE_X86_64_ALL 38 FAT: capabilities CPU_SUBTYPE_LIB64 39 FAT: offset 4096 40 FAT: size 4360 41 FAT: align 2^12 (4096) 42 FAT: architecture i386 43 FAT: cputype CPU_TYPE_I386 44 FAT: cpusubtype CPU_SUBTYPE_I386_ALL 45 FAT: capabilities 0x0 46 FAT: offset 12288 47 FAT: size 4336 48 FAT: align 2^12 (4096) 49 50 NON-VERBOSE: Fat headers 51 NON-VERBOSE: fat_magic 0xcafebabe 52 NON-VERBOSE: nfat_arch 2 53 NON-VERBOSE: architecture 0 54 NON-VERBOSE: cputype 16777223 55 NON-VERBOSE: cpusubtype 3 56 NON-VERBOSE: capabilities 0x80 57 NON-VERBOSE: offset 4096 58 NON-VERBOSE: size 4360 59 NON-VERBOSE: align 2^12 (4096) 60 NON-VERBOSE: architecture 1 61 NON-VERBOSE: cputype 7 62 NON-VERBOSE: cpusubtype 3 63 NON-VERBOSE: capabilities 0x0 64 NON-VERBOSE: offset 12288 65 NON-VERBOSE: size 4336 66 NON-VERBOSE: align 2^12 (4096) 67 68 FAT-64: Fat headers 69 FAT-64: fat_magic FAT_MAGIC_64 70 FAT-64: nfat_arch 2 71