1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/MachO/jcc.s
Steven Wu 315fa847c3 Force the MachO generated for Darwin to have VERSION_MIN load command
On Darwin, it is required to stamp the object file with VERSION_MIN load
command. This commit will provide a VERSRION_MIN load command to the
MachO file that doesn't specify the version itself by inferring from
Target Triple.

llvm-svn: 244059
2015-08-05 15:36:38 +00:00

107 lines
2.1 KiB
ArmAsm

// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
ja 1f
1: nop
jae 1f
1: nop
jb 1f
1: nop
jbe 1f
1: nop
jc 1f
1: nop
jecxz 1f
1: nop
jecxz 1f
1: nop
je 1f
1: nop
jg 1f
1: nop
jge 1f
1: nop
jl 1f
1: nop
jle 1f
1: nop
jna 1f
1: nop
jnae 1f
1: nop
jnb 1f
1: nop
jnbe 1f
1: nop
jnc 1f
1: nop
jne 1f
1: nop
jng 1f
1: nop
jnge 1f
1: nop
jnl 1f
1: nop
jnle 1f
1: nop
jno 1f
1: nop
jnp 1f
1: nop
jns 1f
1: nop
jnz 1f
1: nop
jo 1f
1: nop
jp 1f
1: nop
jpe 1f
1: nop
jpo 1f
1: nop
js 1f
1: nop
jz 1f
1: nop
// CHECK: ('cputype', 7)
// CHECK: ('cpusubtype', 3)
// CHECK: ('filetype', 1)
// CHECK: ('num_load_commands', 2)
// CHECK: ('load_commands_size', 140)
// CHECK: ('flag', 0)
// CHECK: ('load_commands', [
// CHECK: # Load Command 0
// CHECK: (('command', 1)
// CHECK: ('size', 124)
// CHECK: ('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// CHECK: ('vm_addr', 0)
// CHECK: ('vm_size', 96)
// CHECK: ('file_offset', 168)
// CHECK: ('file_size', 96)
// CHECK: ('maxprot', 7)
// CHECK: ('initprot', 7)
// CHECK: ('num_sections', 1)
// CHECK: ('flags', 0)
// CHECK: ('sections', [
// CHECK: # Section 0
// CHECK: (('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// CHECK: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// CHECK: ('address', 0)
// CHECK: ('size', 96)
// CHECK: ('offset', 168)
// CHECK: ('alignment', 0)
// CHECK: ('reloc_offset', 0)
// CHECK: ('num_reloc', 0)
// CHECK: ('flags', 0x80000400)
// CHECK: ('reserved1', 0)
// CHECK: ('reserved2', 0)
// CHECK: ),
// CHECK: ('_relocations', [
// CHECK: ])
// 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')
// CHECK: ])
// CHECK: ),
// CHECK: ])