2011-01-14 03:38:49 +01:00
|
|
|
@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
|
|
|
|
@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
|
2011-01-13 08:58:56 +01:00
|
|
|
|
|
|
|
_t:
|
|
|
|
movw r0, :lower16:(L_foo$non_lazy_ptr - (L1 + 8))
|
|
|
|
movt r0, :upper16:(L_foo$non_lazy_ptr - (L1 + 8))
|
|
|
|
L1:
|
|
|
|
|
2011-01-14 03:38:49 +01:00
|
|
|
@ CHECK: movw r0, :lower16:(L_foo$non_lazy_ptr-(L1+8))
|
|
|
|
@ CHECK: movt r0, :upper16:(L_foo$non_lazy_ptr-(L1+8))
|
2011-01-13 08:58:56 +01:00
|
|
|
|
|
|
|
.comm _foo,4,2
|
|
|
|
|
|
|
|
.section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
|
|
|
|
.align 2
|
|
|
|
L_foo$non_lazy_ptr:
|
|
|
|
.indirect_symbol _foo
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
.subsections_via_symbols
|