repo.or.cz
/
darwin-xtools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
264.3.102
[darwin-xtools.git]
/
ld64
/
unit-tests
/
test-cases
/
linker-optimization-hints
/
AdrpLdrGotLdrField.s
blob
477cdab45821f308b86f0e9d762a51133a94911b
1
2
#ifndef TARGET
3
#define TARGET _foo
4
#endif
5
6
.text
7
.align 2
8
_test
:
9
nop
10
L1
:
adrp x0
,
TARGET@GOTPAGE
11
L2
:
ldr x1
, [
x0
,
#TARGET@GOTPAGEOFF]
12
#if LOAD_GPR_8
13
L3
:
ldr b2
, [
x1
,
#8]
14
#elif LOAD_GPR_16
15
L3
:
ldr h2
, [
x1
,
#8]
16
#elif LOAD_GPR_32
17
L3
:
ldr w2
, [
x1
,
#8]
18
#elif LOAD_GPR_64
19
L3
:
ldr x2
, [
x1
,
#8]
20
#elif LOAD_FPR_32
21
L3
:
ldr s2
, [
x1
,
#8]
22
#elif LOAD_FPR_64
23
L3
:
ldr d2
, [
x1
,
#8]
24
#elif LOAD_VEC_128
25
L3
:
ldr q2
, [
x1
,
#16]
26
#endif
27
nop
28
29
.loh AdrpLdrGotLdr L1, L2, L3
30
31
#if PADDING
32
_pad
:
33
.space 1100000
34
#endif
35
36
#if FOO_AS_CONST
37
.const
38
.align 4
39
#endif
40
41
#if FOO_AS_DATA
42
.data
43
_makePageOffsetNonZero
:
.long 0,0,0,0
44
#endif
45
46
#if MISALIGN_DATA
47
_junk
:
.byte 0
48
#endif
49
50
_foo
:
.long 0,0,0,0
51
52
53