summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/sh64/shdl-2.s
blob: a41fd52a0a1bb4563d0939a4951d79e1055a6c8d (plain)
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
! Part two of test for inter-file DataLabel support.

	.mode SHmedia
	.text
part2:
	movi (datalabel foowithout + 16) & 65535, r24

	.section .rodata
	.long datalabel foo_otherwithout + 32

	.text
	movi (datalabel foo_mixwithout + 1024) & 65535, r24
	.section .rodata
	.long datalabel foo_mixwithout + 32

	.text
	movi (datalabel foo_mixwithout2 + 1024) & 65535, r24
	.section .rodata
	.long foo_mixwithout2 + 32

	.text
	.global bar
bar:
	nop

	.global barboth
barboth:
	nop

	.global barboth2
barboth2:
	nop

	.global barwithout
barwithout:
	nop

	.global bar_other
bar_other:
	nop
	.global bar_otherboth
bar_otherboth:
	nop
	.global bar_otherboth2
bar_otherboth2:
	nop
	.global bar_otherwithout
bar_otherwithout:
	nop

	.text

	.global bar_mix
bar_mix:
	nop
	.global bar_mix2
bar_mix2:
	nop
	.global bar_mixboth
bar_mixboth:
	nop
	.global bar_mixboth2
bar_mixboth2:
	nop
	.global bar_mixwithout
bar_mixwithout:
	nop
	.global bar_mixwithout2
bar_mixwithout2:
	nop

! Almost-copy of "foo" in primary file.

	.global baz
baz:
	nop
	movi (datalabel baz + 8) & 65535,r30

	.global bazboth
bazboth:
	nop
	movi (datalabel bazboth + 16) & 65535,r40
	movi (bazboth + 12) & 65535,r40

	.global bazboth2
bazboth2:
	nop
	movi (bazboth2 + 12) & 65535,r40
	movi (datalabel bazboth2 + 16) & 65535,r40

	.global bazwithout
bazwithout:
	nop
	movi (datalabel bazwithout + 24) & 65535,r30

	.global baz_other
baz_other:
	nop
	.global baz_otherboth
baz_otherboth:
	nop
	.global baz_otherboth2
baz_otherboth2:
	nop
	.global baz_otherwithout
baz_otherwithout:
	nop

	.section .rodata
	.long datalabel baz_other + 4
	.long datalabel baz_otherboth + 40
	.long baz_otherboth + 24
	.long baz_otherboth2 + 24
	.long datalabel baz_otherboth2 + 40
	.long baz_otherwithout

	.text

	.global baz_mix
baz_mix:
	nop
	movi (datalabel baz_mix + 8) & 65535,r30
	.global baz_mix2
baz_mix2:
	nop
	movi (baz_mix2 + 8) & 65535,r30
	.global baz_mixboth
baz_mixboth:
	nop
	movi (datalabel baz_mixboth + 80) & 65535,r30
	movi (baz_mixboth + 80) & 65535,r30
	.global baz_mixboth2
baz_mixboth2:
	nop
	movi (baz_mixboth2 + 64) & 65535,r30
	movi (datalabel baz_mixboth2 + 64) & 65535,r30
	.global baz_mixwithout
baz_mixwithout:
	nop
	movi (baz_mixwithout + 42) & 65535,r30
	.global baz_mixwithout2
baz_mixwithout2:
	nop
	movi (baz_mixwithout2 + 24) & 65535,r30

	.section .rodata
	.long baz_mix + 4
	.long datalabel baz_mix2 + 48
	.long datalabel baz_mixboth + 400
	.long baz_mixboth + 420
	.long baz_mixboth2 + 248
	.long datalabel baz_mixboth2 + 240
	.long baz_mixwithout

	.data
	.long datalabel dfoowithout + 44
	.long datalabel dfoo_mixwithout + 48
	.long datalabel dfoo_mixwithout2 + 84

	.global dbar
dbar:
	.long 0
	.global dbarboth
dbarboth:
	.long 0
	.global dbarboth2
dbarboth2:
	.long 0
	.global dbarwithout
dbarwithout:
	.long 0
	.global dbar_other
dbar_other:
	.long 0
	.global dbar_otherboth
dbar_otherboth:
	.long 0
	.global dbar_otherboth2
dbar_otherboth2:
	.long 0
	.global dbar_otherwithout
dbar_otherwithout:
	.long 0

	.global dbar_mix
dbar_mix:
	.long 0
	.global dbar_mix2
dbar_mix2:
	.long 0
	.global dbar_mixboth
dbar_mixboth:
	.long 0
	.global dbar_mixboth2
dbar_mixboth2:
	.long 0
	.global dbar_mixwithout
dbar_mixwithout:
	.long 0
	.global dbar_mixwithout2
dbar_mixwithout2:
	.long 0

! Almost-copy of "dfoo" in primary file.

	.data
	.global dbaz
dbaz:
	.long 0
	.long (datalabel dbaz + 8)

	.global dbazboth
dbazboth:
	.long 0
	.long (datalabel dbazboth + 16)
	.long (dbazboth + 12)

	.global dbazboth2
dbazboth2:
	.long 0
	.long (dbazboth2 + 12)
	.long (datalabel dbazboth2 + 16)

	.global dbazwithout
dbazwithout:
	.long 0
	.long (dbazwithout + 24)

	.global dbaz_other
dbaz_other:
	.long 0
	.global dbaz_otherboth
dbaz_otherboth:
	.long 0
	.global dbaz_otherboth2
dbaz_otherboth2:
	.long 0
	.global dbaz_otherwithout
dbaz_otherwithout:
	.long 0

	.section .rodata
	.long datalabel dbaz_other + 4
	.long datalabel dbaz_otherboth + 40
	.long dbaz_otherboth + 24
	.long dbaz_otherboth2 + 24
	.long datalabel dbaz_otherboth2 + 40
	.long dbaz_otherwithout

	.data

	.global dbaz_mix
dbaz_mix:
	.long 0
	.long (datalabel dbaz_mix + 8)
	.global dbaz_mix2
dbaz_mix2:
	.long 0
	.long (dbaz_mix2 + 8)
	.global dbaz_mixboth
dbaz_mixboth:
	.long 0
	.long (datalabel dbaz_mixboth + 80)
	.long (dbaz_mixboth + 80)
	.global dbaz_mixboth2
dbaz_mixboth2:
	.long 0
	.long (dbaz_mixboth2 + 64)
	.long (datalabel dbaz_mixboth2 + 64)
	.global dbaz_mixwithout
dbaz_mixwithout:
	.long 0
	.long (dbaz_mixwithout + 42)
	.global dbaz_mixwithout2
dbaz_mixwithout2:
	.long 0
	.long (dbaz_mixwithout2 + 24)

	.section .rodata
	.long dbaz_mix + 4
	.long datalabel dbaz_mix2 + 48
	.long datalabel dbaz_mixboth + 400
	.long dbaz_mixboth + 420
	.long dbaz_mixboth2 + 248
	.long datalabel dbaz_mixboth2 + 240
	.long dbaz_mixwithout