mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
d8ba292c9b
correctly. The Lexer was incorrectly eating the newline casusing it to branch to address 0. Updated the test case to use a "0:" label and a branch to "0b". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104038 91177308-0d34-0410-b5e6-96231b3b80d8
96 lines
2.7 KiB
ArmAsm
96 lines
2.7 KiB
ArmAsm
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
|
|
|
|
direction_labels:
|
|
10: nop
|
|
jmp 10b
|
|
nop
|
|
jne 0f
|
|
0: nop
|
|
jne 0b
|
|
jmp 11f
|
|
11: nop
|
|
ret
|
|
|
|
// CHECK: ('cputype', 7)
|
|
// CHECK: ('cpusubtype', 3)
|
|
// CHECK: ('filetype', 1)
|
|
// CHECK: ('num_load_commands', 1)
|
|
// CHECK: ('load_commands_size', 228)
|
|
// 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', 13)
|
|
// CHECK: ('file_offset', 256)
|
|
// CHECK: ('file_size', 13)
|
|
// 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', 13)
|
|
// CHECK: ('offset', 256)
|
|
// 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', '\x90\xeb\xfd\x90u\x00\x90u\xfd\xeb\x00\x90\xc3')
|
|
// CHECK: ])
|
|
// CHECK: ),
|
|
// CHECK: # Load Command 1
|
|
// CHECK: (('command', 2)
|
|
// CHECK: ('size', 24)
|
|
// CHECK: ('symoff', 272)
|
|
// CHECK: ('nsyms', 1)
|
|
// CHECK: ('stroff', 284)
|
|
// CHECK: ('strsize', 20)
|
|
// CHECK: ('_string_data', '\x00direction_labels\x00\x00\x00')
|
|
// CHECK: ('_symbols', [
|
|
// CHECK: # Symbol 0
|
|
// CHECK: (('n_strx', 1)
|
|
// CHECK: ('n_type', 0xe)
|
|
// CHECK: ('n_sect', 1)
|
|
// CHECK: ('n_desc', 0)
|
|
// CHECK: ('n_value', 0)
|
|
// CHECK: ('_string', 'direction_labels')
|
|
// CHECK: ),
|
|
// CHECK: ])
|
|
// CHECK: ),
|
|
// CHECK: # Load Command 2
|
|
// CHECK: (('command', 11)
|
|
// CHECK: ('size', 80)
|
|
// CHECK: ('ilocalsym', 0)
|
|
// CHECK: ('nlocalsym', 1)
|
|
// CHECK: ('iextdefsym', 1)
|
|
// CHECK: ('nextdefsym', 0)
|
|
// CHECK: ('iundefsym', 1)
|
|
// CHECK: ('nundefsym', 0)
|
|
// CHECK: ('tocoff', 0)
|
|
// CHECK: ('ntoc', 0)
|
|
// CHECK: ('modtaboff', 0)
|
|
// CHECK: ('nmodtab', 0)
|
|
// CHECK: ('extrefsymoff', 0)
|
|
// CHECK: ('nextrefsyms', 0)
|
|
// CHECK: ('indirectsymoff', 0)
|
|
// CHECK: ('nindirectsyms', 0)
|
|
// CHECK: ('extreloff', 0)
|
|
// CHECK: ('nextrel', 0)
|
|
// CHECK: ('locreloff', 0)
|
|
// CHECK: ('nlocrel', 0)
|
|
// CHECK: ('_indirect_symbols', [
|
|
// CHECK: ])
|
|
// CHECK: ),
|
|
// CHECK: ])
|