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