1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
.section .toc,"aw"
x4t:
.quad x4
x5t:
.quad x5
.section .sdata,"aw"
.p2align 4
x1:
.quad 1
x2:
.quad 2
x3:
.quad 3
x4:
.quad 4
x5:
.quad 5
x6:
.quad 6
.globl _start
.text
_start:
# no need for got entry, optimise to nop,addi
addis 9,2,x1@got@ha
ld 9,x1@got@l(9)
# must keep got entry, optimise to nop,addi,ld
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
ld 6,0(5)
# no need for toc entry, optimise to nop,addi
addis 9,2,x4t@toc@ha
ld 9,x4t@toc@l(9)
# must keep toc entry, optimise to nop,addi,ld
# if we had a reloc tying the ld to x5/x5t then we could throw away
# the toc entry and optimise to nop,nop,addi
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
ld 6,0(5)
# keep toc entry due to other accesses to x5t, optimise to nop,ld
addis 9,2,x5t@toc@ha
ld 9,x5t@toc@l(9)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lwz 6,0(5)
addis 9,2,x1@toc@ha
lwz 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lwz 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lwa 6,0(5)
addis 9,2,x1@toc@ha
lwa 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lwa 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lhz 6,0(5)
addis 9,2,x1@toc@ha
lhz 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lhz 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lha 6,0(5)
addis 9,2,x1@toc@ha
lha 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lha 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lbz 6,0(5)
addis 9,2,x1@toc@ha
lbz 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lbz 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lfs 6,0(5)
addis 9,2,x1@toc@ha
lfs 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lfs 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lfd 6,0(5)
addis 9,2,x1@toc@ha
lfd 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lfd 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lxv 6,0(5)
addis 9,2,x1@toc@ha
lxv 9,x1@toc@l(9)
addis 4,2,x1@toc@ha
addi 5,4,x1@toc@l
lxv 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lxsd 6,0(5)
addis 9,2,x1@toc@ha
lxsd 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lxsd 6,0(5)
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
lxssp 6,0(5)
addis 9,2,x1@toc@ha
lxssp 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
lxssp 6,0(5)
addis 9,2,x1@toc@ha
std 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
std 6,0(5)
addis 9,2,x1@toc@ha
stw 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stw 6,0(5)
addis 9,2,x1@toc@ha
sth 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
sth 6,0(5)
addis 9,2,x1@toc@ha
stb 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stb 6,0(5)
addis 9,2,x1@toc@ha
stfs 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stfs 6,0(5)
addis 9,2,x1@toc@ha
stfd 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stfd 6,0(5)
addis 9,2,x1@toc@ha
stxv 9,x1@toc@l(9)
addis 4,2,x1@toc@ha
addi 5,4,x1@toc@l
stxv 6,0(5)
addis 9,2,x1@toc@ha
stxsd 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stxsd 6,0(5)
addis 9,2,x1@toc@ha
stxssp 9,x1@toc@l(9)
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
stxssp 6,0(5)
|