xref: /llvm-project/llvm/test/MC/ARM/hilo-16bit-relocations.s (revision d4a5c05c97b8c70f062288116afdabcf4c532483)
1*d4a5c05cSEvan Cheng@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
2*d4a5c05cSEvan Cheng@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
3965b3c73SEvan Cheng
4965b3c73SEvan Cheng_t:
5965b3c73SEvan Cheng        movw    r0, :lower16:(L_foo$non_lazy_ptr - (L1 + 8))
6965b3c73SEvan Cheng        movt    r0, :upper16:(L_foo$non_lazy_ptr - (L1 + 8))
7965b3c73SEvan ChengL1:
8965b3c73SEvan Cheng
9*d4a5c05cSEvan Cheng@ CHECK: movw	r0, :lower16:(L_foo$non_lazy_ptr-(L1+8))
10*d4a5c05cSEvan Cheng@ CHECK: movt	r0, :upper16:(L_foo$non_lazy_ptr-(L1+8))
11965b3c73SEvan Cheng
12965b3c73SEvan Cheng        .comm	_foo,4,2
13965b3c73SEvan Cheng
14965b3c73SEvan Cheng	.section	__DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
15965b3c73SEvan Cheng	.align	2
16965b3c73SEvan ChengL_foo$non_lazy_ptr:
17965b3c73SEvan Cheng	.indirect_symbol	_foo
18965b3c73SEvan Cheng	.long	0
19965b3c73SEvan Cheng
20965b3c73SEvan Cheng.subsections_via_symbols
21