xref: /aosp_15_r20/external/llvm/test/MC/ARM/hilo-16bit-relocations.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker_t:
5*9880d681SAndroid Build Coastguard Worker        movw    r0, :lower16:(L_foo$non_lazy_ptr - (L1 + 8))
6*9880d681SAndroid Build Coastguard Worker        movt    r0, :upper16:(L_foo$non_lazy_ptr - (L1 + 8))
7*9880d681SAndroid Build Coastguard WorkerL1:
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker@ CHECK: movw	r0, :lower16:(L_foo$non_lazy_ptr-(L1+8))
10*9880d681SAndroid Build Coastguard Worker@ CHECK: movt	r0, :upper16:(L_foo$non_lazy_ptr-(L1+8))
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker        .comm	_foo,4,2
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker	.section	__DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
15*9880d681SAndroid Build Coastguard Worker	.align	2
16*9880d681SAndroid Build Coastguard WorkerL_foo$non_lazy_ptr:
17*9880d681SAndroid Build Coastguard Worker	.indirect_symbol	_foo
18*9880d681SAndroid Build Coastguard Worker	.long	0
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker.subsections_via_symbols
21