1 @ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | macho-dump | FileCheck %s 2 3 @ rdar://10038370 4 5 .syntax unified 6 .text 7 .align 2 8 .code 16 9 .thumb_func _foo 10 movw r2, :lower16:L1 11 movt r2, :upper16:L1 12 movw r12, :lower16:L2 13 movt r12, :upper16:L2 14 .space 70000 15 16 .data 17 L1: .long 0 18 L2: .long 0 19 20 @ CHECK: ('_relocations', [ 21 @ CHECK: # Relocation 0 22 @ CHECK: (('word-0', 0xc), 23 @ CHECK: ('word-1', 0x86000002)), 24 @ CHECK: # Relocation 1 25 @ CHECK: (('word-0', 0x1184), 26 @ CHECK: ('word-1', 0x16ffffff)), 27 @ CHECK: # Relocation 2 28 @ CHECK: (('word-0', 0x8), 29 @ CHECK: ('word-1', 0x84000002)), 30 @ CHECK: # Relocation 3 31 @ CHECK: (('word-0', 0x1), 32 @ CHECK: ('word-1', 0x14ffffff)), 33 @ CHECK: # Relocation 4 34 @ CHECK: (('word-0', 0x4), 35 @ CHECK: ('word-1', 0x86000002)), 36 @ CHECK: # Relocation 5 37 @ CHECK: (('word-0', 0x1180), 38 @ CHECK: ('word-1', 0x16ffffff)), 39 @ CHECK: # Relocation 6 40 @ CHECK: (('word-0', 0x0), 41 @ CHECK: ('word-1', 0x84000002)), 42 @ CHECK: # Relocation 7 43 @ CHECK: (('word-0', 0x1), 44 @ CHECK: ('word-1', 0x14ffffff)), 45