1// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -file-headers -s -sd -r -macho-segment | FileCheck %s 2 3 ja 1f 41: nop 5 jae 1f 61: nop 7 jb 1f 81: nop 9 jbe 1f 101: nop 11 jc 1f 121: nop 13 jecxz 1f 141: nop 15 jecxz 1f 161: nop 17 je 1f 181: nop 19 jg 1f 201: nop 21 jge 1f 221: nop 23 jl 1f 241: nop 25 jle 1f 261: nop 27 jna 1f 281: nop 29 jnae 1f 301: nop 31 jnb 1f 321: nop 33 jnbe 1f 341: nop 35 jnc 1f 361: nop 37 jne 1f 381: nop 39 jng 1f 401: nop 41 jnge 1f 421: nop 43 jnl 1f 441: nop 45 jnle 1f 461: nop 47 jno 1f 481: nop 49 jnp 1f 501: nop 51 jns 1f 521: nop 53 jnz 1f 541: nop 55 jo 1f 561: nop 57 jp 1f 581: nop 59 jpe 1f 601: nop 61 jpo 1f 621: nop 63 js 1f 641: nop 65 jz 1f 661: nop 67 68// CHECK: File: <stdin> 69// CHECK: Format: Mach-O 32-bit i386 70// CHECK: Arch: i386 71// CHECK: AddressSize: 32bit 72// CHECK: MachHeader { 73// CHECK: Magic: Magic (0xFEEDFACE) 74// CHECK: CpuType: X86 (0x7) 75// CHECK: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3) 76// CHECK: FileType: Relocatable (0x1) 77// CHECK: NumOfLoadCommands: 2 78// CHECK: SizeOfLoadCommands: 140 79// CHECK: Flags [ (0x0) 80// CHECK: ] 81// CHECK: } 82// CHECK: Sections [ 83// CHECK: Section { 84// CHECK: Index: 0 85// CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) 86// CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 87// CHECK: Address: 0x0 88// CHECK: Size: 0x60 89// CHECK: Offset: 168 90// CHECK: Alignment: 0 91// CHECK: RelocationOffset: 0x0 92// CHECK: RelocationCount: 0 93// CHECK: Type: 0x0 94// CHECK: Attributes [ (0x800004) 95// CHECK: PureInstructions (0x800000) 96// CHECK: SomeInstructions (0x4) 97// CHECK: ] 98// CHECK: Reserved1: 0x0 99// CHECK: Reserved2: 0x0 100// CHECK: SectionData ( 101// CHECK: 0000: 77009073 00907200 90760090 720090E3 |w..s..r..v..r...| 102// CHECK: 0010: 0090E300 90740090 7F00907D 00907C00 |.....t.....}..|.| 103// CHECK: 0020: 907E0090 76009072 00907300 90770090 |.~..v..r..s..w..| 104// CHECK: 0030: 73009075 00907E00 907C0090 7D00907F |s..u..~..|..}...| 105// CHECK: 0040: 00907100 907B0090 79009075 00907000 |..q..{..y..u..p.| 106// CHECK: 0050: 907A0090 7A00907B 00907800 90740090 |.z..z..{..x..t..| 107// CHECK: ) 108// CHECK: } 109// CHECK: ] 110// CHECK: Relocations [ 111// CHECK: ] 112// CHECK: Segment { 113// CHECK: Cmd: LC_SEGMENT 114// CHECK: Name: 115// CHECK: Size: 124 116// CHECK: vmaddr: 0x0 117// CHECK: vmsize: 0x60 118// CHECK: fileoff: 168 119// CHECK: filesize: 96 120// CHECK: maxprot: rwx 121// CHECK: initprot: rwx 122// CHECK: nsects: 1 123// CHECK: flags: 0x0 124// CHECK: } 125