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 4foo: 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: Extern: 1 16@ CHECK-NEXT: Type: ARM_RELOC_HALF (8) 17@ CHECK-NEXT: Symbol: bar 18@ CHECK-NEXT: Scattered: 0 19@ CHECK-NEXT: } 20@ CHECK-NEXT: Relocation { 21@ CHECK-NEXT: Offset: 0x10 22@ CHECK-NEXT: PCRel: 0 23@ CHECK-NEXT: Length: 3 24@ CHECK-NEXT: Extern: 0 25@ CHECK-NEXT: Type: ARM_RELOC_PAIR (1) 26@ CHECK-NEXT: Symbol: 0xFFFFFF 27@ CHECK-NEXT: Scattered: 0 28@ CHECK-NEXT: } 29@ CHECK-NEXT: Relocation { 30@ CHECK-NEXT: Offset: 0x0 31@ CHECK-NEXT: PCRel: 0 32@ CHECK-NEXT: Length: 2 33@ CHECK-NEXT: Extern: 1 34@ CHECK-NEXT: Type: ARM_RELOC_HALF (8) 35@ CHECK-NEXT: Symbol: bar 36@ CHECK-NEXT: Scattered: 0 37@ CHECK-NEXT: } 38@ CHECK-NEXT: Relocation { 39@ CHECK-NEXT: Offset: 0x0 40@ CHECK-NEXT: PCRel: 0 41@ CHECK-NEXT: Length: 2 42@ CHECK-NEXT: Extern: 0 43@ CHECK-NEXT: Type: ARM_RELOC_PAIR (1) 44@ CHECK-NEXT: Symbol: 0xFFFFFF 45@ CHECK-NEXT: Scattered: 0 46@ CHECK-NEXT: } 47@ CHECK-NEXT: } 48@ CHECK-NEXT: ] 49