comparison test/MC/MachO/jcc.s @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 95c75e76d11b
children c2174574ed3a
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s 1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -file-headers -s -sd -r -macho-segment | FileCheck %s
2 2
3 ja 1f 3 ja 1f
4 1: nop 4 1: nop
5 jae 1f 5 jae 1f
6 1: nop 6 1: nop
63 js 1f 63 js 1f
64 1: nop 64 1: nop
65 jz 1f 65 jz 1f
66 1: nop 66 1: nop
67 67
68 // CHECK: ('cputype', 7) 68 // CHECK: File: <stdin>
69 // CHECK: ('cpusubtype', 3) 69 // CHECK: Format: Mach-O 32-bit i386
70 // CHECK: ('filetype', 1) 70 // CHECK: Arch: i386
71 // CHECK: ('num_load_commands', 1) 71 // CHECK: AddressSize: 32bit
72 // CHECK: ('load_commands_size', 124) 72 // CHECK: MachHeader {
73 // CHECK: ('flag', 0) 73 // CHECK: Magic: Magic (0xFEEDFACE)
74 // CHECK: ('load_commands', [ 74 // CHECK: CpuType: X86 (0x7)
75 // CHECK: # Load Command 0 75 // CHECK: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3)
76 // CHECK: (('command', 1) 76 // CHECK: FileType: Relocatable (0x1)
77 // CHECK: ('size', 124) 77 // CHECK: NumOfLoadCommands: 2
78 // CHECK: ('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 78 // CHECK: SizeOfLoadCommands: 140
79 // CHECK: ('vm_addr', 0) 79 // CHECK: Flags [ (0x0)
80 // CHECK: ('vm_size', 96) 80 // CHECK: ]
81 // CHECK: ('file_offset', 152) 81 // CHECK: }
82 // CHECK: ('file_size', 96) 82 // CHECK: Sections [
83 // CHECK: ('maxprot', 7) 83 // CHECK: Section {
84 // CHECK: ('initprot', 7) 84 // CHECK: Index: 0
85 // CHECK: ('num_sections', 1) 85 // CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
86 // CHECK: ('flags', 0) 86 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
87 // CHECK: ('sections', [ 87 // CHECK: Address: 0x0
88 // CHECK: # Section 0 88 // CHECK: Size: 0x60
89 // CHECK: (('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 89 // CHECK: Offset: 168
90 // CHECK: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 90 // CHECK: Alignment: 0
91 // CHECK: ('address', 0) 91 // CHECK: RelocationOffset: 0x0
92 // CHECK: ('size', 96) 92 // CHECK: RelocationCount: 0
93 // CHECK: ('offset', 152) 93 // CHECK: Type: 0x0
94 // CHECK: ('alignment', 0) 94 // CHECK: Attributes [ (0x800004)
95 // CHECK: ('reloc_offset', 0) 95 // CHECK: PureInstructions (0x800000)
96 // CHECK: ('num_reloc', 0) 96 // CHECK: SomeInstructions (0x4)
97 // CHECK: ('flags', 0x80000400) 97 // CHECK: ]
98 // CHECK: ('reserved1', 0) 98 // CHECK: Reserved1: 0x0
99 // CHECK: ('reserved2', 0) 99 // CHECK: Reserved2: 0x0
100 // CHECK: ), 100 // CHECK: SectionData (
101 // CHECK: ('_relocations', [ 101 // CHECK: 0000: 77009073 00907200 90760090 720090E3 |w..s..r..v..r...|
102 // CHECK: ]) 102 // CHECK: 0010: 0090E300 90740090 7F00907D 00907C00 |.....t.....}..|.|
103 // CHECK: ('_section_data', '77009073 00907200 90760090 720090e3 0090e300 90740090 7f00907d 00907c00 907e0090 76009072 00907300 90770090 73009075 00907e00 907c0090 7d00907f 00907100 907b0090 79009075 00907000 907a0090 7a00907b 00907800 90740090') 103 // CHECK: 0020: 907E0090 76009072 00907300 90770090 |.~..v..r..s..w..|
104 // CHECK: ]) 104 // CHECK: 0030: 73009075 00907E00 907C0090 7D00907F |s..u..~..|..}...|
105 // CHECK: ), 105 // CHECK: 0040: 00907100 907B0090 79009075 00907000 |..q..{..y..u..p.|
106 // CHECK: ]) 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: }