1 @ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs | FileCheck %s 2 .thumb 3 .thumb_func foo 4 foo: 5 movw r0, :lower16:(bar + 16) 6 movt r0, :upper16:(bar + 16) 7 bx r0 8 9 @ CHECK: Relocations [ 10 @ CHECK-NEXT: Section __text { 11 @ CHECK-NEXT: Relocation { 12 @ CHECK-NEXT: Offset: 0x4 13 @ CHECK-NEXT: PCRel: 0 14 @ CHECK-NEXT: Length: 3 15 @ CHECK-NEXT: Type: ARM_RELOC_HALF (8) 16 @ CHECK-NEXT: Symbol: bar 17 @ CHECK-NEXT: } 18 @ CHECK-NEXT: Relocation { 19 @ CHECK-NEXT: Offset: 0x10 20 @ CHECK-NEXT: PCRel: 0 21 @ CHECK-NEXT: Length: 3 22 @ CHECK-NEXT: Type: ARM_RELOC_PAIR (1) 23 @ CHECK-NEXT: Section: - 24 @ CHECK-NEXT: } 25 @ CHECK-NEXT: Relocation { 26 @ CHECK-NEXT: Offset: 0x0 27 @ CHECK-NEXT: PCRel: 0 28 @ CHECK-NEXT: Length: 2 29 @ CHECK-NEXT: Type: ARM_RELOC_HALF (8) 30 @ CHECK-NEXT: Symbol: bar 31 @ CHECK-NEXT: } 32 @ CHECK-NEXT: Relocation { 33 @ CHECK-NEXT: Offset: 0x0 34 @ CHECK-NEXT: PCRel: 0 35 @ CHECK-NEXT: Length: 2 36 @ CHECK-NEXT: Type: ARM_RELOC_PAIR (1) 37 @ CHECK-NEXT: Section: - 38 @ CHECK-NEXT: } 39 @ CHECK-NEXT: } 40 @ CHECK-NEXT: ] 41