Home | History | Annotate | Download | only in MachO
      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
      4 1: nop
      5    jae 1f
      6 1: nop
      7    jb 1f
      8 1: nop
      9    jbe 1f
     10 1: nop
     11    jc 1f
     12 1: nop
     13    jecxz 1f
     14 1: nop
     15    jecxz 1f
     16 1: nop
     17    je 1f
     18 1: nop
     19    jg 1f
     20 1: nop
     21    jge 1f
     22 1: nop
     23    jl 1f
     24 1: nop
     25    jle 1f
     26 1: nop
     27    jna 1f
     28 1: nop
     29    jnae 1f
     30 1: nop
     31    jnb 1f
     32 1: nop
     33    jnbe 1f
     34 1: nop
     35    jnc 1f
     36 1: nop
     37    jne 1f
     38 1: nop
     39    jng 1f
     40 1: nop
     41    jnge 1f
     42 1: nop
     43    jnl 1f
     44 1: nop
     45    jnle 1f
     46 1: nop
     47    jno 1f
     48 1: nop
     49    jnp 1f
     50 1: nop
     51    jns 1f
     52 1: nop
     53    jnz 1f
     54 1: nop
     55    jo 1f
     56 1: nop
     57    jp 1f
     58 1: nop
     59    jpe 1f
     60 1: nop
     61    jpo 1f
     62 1: nop
     63    js 1f
     64 1: nop
     65    jz 1f
     66 1: 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