OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [mips/] [irix/] [tst/] [cvt.sbk] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
.set reorder
2
.globl print
3
.text
4
.text
5
.align 2
6
.ent print
7
print:
8
.frame $sp,80,$31
9
.set noreorder
10
.cpload $25
11
.set reorder
12
addu $sp,$sp,-80
13
.mask 0x82000000,-12
14
.cprestore 64
15
sw $31,68($sp)
16
la $4,L.2
17
lb $5,c
18
lh $6,s
19
lw $7,i
20
lw $24,l
21
sw $24,16($sp)
22
lbu $24,C
23
sw $24,20($sp)
24
lhu $24,S
25
sw $24,24($sp)
26
lw $24,I
27
sw $24,28($sp)
28
lw $24,L
29
sw $24,32($sp)
30
l.s $f18,f
31
cvt.d.s $f18,$f18
32
s.d $f18,40($sp)
33
l.d $f18,d
34
s.d $f18,48($sp)
35
l.d $f18,D
36
s.d $f18,56($sp)
37
jal printf
38
L.1:
39
lw $25,64($sp)
40
lw $31,68($sp)
41
addu $sp,$sp,80
42
j $31
43
.end print
44
.globl main
45
.text
46
.align 2
47
.ent main
48
main:
49
.frame $sp,80,$31
50
.set noreorder
51
.cpload $25
52
.set reorder
53
addu $sp,$sp,-80
54
.mask 0xc2ff0000,-24
55
sw $16,16($sp)
56
sw $17,20($sp)
57
sw $18,24($sp)
58
sw $19,28($sp)
59
sw $20,32($sp)
60
sw $21,36($sp)
61
sw $22,40($sp)
62
sw $23,44($sp)
63
.cprestore 48
64
sw $30,52($sp)
65
sw $31,56($sp)
66
la $24,1
67
sb $24,c
68
lb $24,c
69
move $15,$24
70
sh $15,s
71
sw $24,i
72
sw $24,l
73
move $15,$24
74
move $14,$15
75
sb $14,C
76
move $14,$15
77
sh $14,S
78
sw $15,I
79
sw $15,L
80
mtc1 $24,$f18; cvt.s.w $f18,$f18
81
s.s $f18,f
82
mtc1 $24,$f18; cvt.d.w $f18,$f18
83
s.d $f18,d
84
s.d $f18,D
85
jal print
86
la $24,2
87
sh $24,s
88
lh $24,s
89
move $15,$24
90
sb $15,c
91
sw $24,i
92
sw $24,l
93
move $15,$24
94
move $14,$15
95
sb $14,C
96
move $14,$15
97
sh $14,S
98
sw $15,I
99
sw $15,L
100
mtc1 $24,$f18; cvt.s.w $f18,$f18
101
s.s $f18,f
102
mtc1 $24,$f18; cvt.d.w $f18,$f18
103
s.d $f18,d
104
s.d $f18,D
105
jal print
106
la $24,3
107
sw $24,i
108
lw $24,i
109
move $15,$24
110
sb $15,c
111
move $15,$24
112
sh $15,s
113
sw $24,l
114
move $15,$24
115
move $14,$15
116
sb $14,C
117
move $14,$15
118
sh $14,S
119
sw $15,I
120
sw $15,L
121
mtc1 $24,$f18; cvt.s.w $f18,$f18
122
s.s $f18,f
123
mtc1 $24,$f18; cvt.d.w $f18,$f18
124
s.d $f18,d
125
s.d $f18,D
126
jal print
127
la $24,4
128
sw $24,l
129
lw $24,l
130
move $15,$24
131
sb $15,c
132
move $15,$24
133
sh $15,s
134
sw $24,i
135
move $15,$24
136
move $14,$15
137
sb $14,C
138
move $14,$15
139
sh $14,S
140
sw $15,I
141
sw $15,L
142
mtc1 $24,$f18; cvt.s.w $f18,$f18
143
s.s $f18,f
144
mtc1 $24,$f18; cvt.d.w $f18,$f18
145
s.d $f18,d
146
s.d $f18,D
147
jal print
148
la $24,5
149
sb $24,C
150
lbu $24,C
151
move $15,$24
152
sb $15,c
153
move $15,$24
154
sh $15,s
155
sw $24,i
156
sw $24,l
157
move $15,$24
158
move $14,$15
159
sh $14,S
160
sw $15,I
161
sw $15,L
162
mtc1 $24,$f18; cvt.s.w $f18,$f18
163
s.s $f18,f
164
mtc1 $24,$f18; cvt.d.w $f18,$f18
165
s.d $f18,d
166
s.d $f18,D
167
jal print
168
la $24,6
169
sh $24,S
170
lhu $24,S
171
move $15,$24
172
sb $15,c
173
move $15,$24
174
sh $15,s
175
sw $24,i
176
sw $24,l
177
move $15,$24
178
move $14,$15
179
sb $14,C
180
sw $15,I
181
sw $15,L
182
mtc1 $24,$f18; cvt.s.w $f18,$f18
183
s.s $f18,f
184
mtc1 $24,$f18; cvt.d.w $f18,$f18
185
s.d $f18,d
186
s.d $f18,D
187
jal print
188
la $24,7
189
sw $24,I
190
lw $24,I
191
move $14,$24
192
sb $14,c
193
move $14,$24
194
sh $14,s
195
sw $24,i
196
sw $24,l
197
move $15,$24
198
sb $15,C
199
move $15,$24
200
sh $15,S
201
sw $24,L
202
l.d $f18,L.4
203
srl $15,$24,1
204
mtc1 $15,$f16; cvt.d.w $f16,$f16
205
mul.d $f18,$f18,$f16
206
and $24,$24,1
207
mtc1 $24,$f16; cvt.d.w $f16,$f16
208
add.d $f18,$f18,$f16
209
cvt.s.d $f16,$f18
210
s.s $f16,f
211
s.d $f18,d
212
s.d $f18,D
213
jal print
214
la $24,8
215
sw $24,L
216
lw $24,L
217
move $14,$24
218
sb $14,c
219
move $14,$24
220
sh $14,s
221
sw $24,i
222
sw $24,l
223
move $15,$24
224
sb $15,C
225
move $15,$24
226
sh $15,S
227
lhu $15,S
228
sw $15,I
229
l.d $f18,L.4
230
srl $15,$24,1
231
mtc1 $15,$f16; cvt.d.w $f16,$f16
232
mul.d $f18,$f18,$f16
233
and $24,$24,1
234
mtc1 $24,$f16; cvt.d.w $f16,$f16
235
add.d $f18,$f18,$f16
236
cvt.s.d $f16,$f18
237
s.s $f16,f
238
s.d $f18,d
239
s.d $f18,D
240
jal print
241
l.s $f18,L.5
242
s.s $f18,f
243
l.s $f18,f
244
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
245
move $15,$24
246
sb $15,c
247
move $15,$24
248
sh $15,s
249
sw $24,i
250
sw $24,l
251
l.s $f16,L.9
252
c.ult.s $f18,$f16; bc1t L.7
253
sub.s $f16,$f18,$f16
254
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
255
la $30,0x80000000($24)
256
b L.8
257
L.7:
258
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
259
move $30,$24
260
L.8:
261
move $24,$30
262
sb $24,C
263
l.s $f18,f
264
l.s $f16,L.9
265
c.ult.s $f18,$f16; bc1t L.11
266
sub.s $f16,$f18,$f16
267
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
268
la $23,0x80000000($24)
269
b L.12
270
L.11:
271
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
272
move $23,$24
273
L.12:
274
move $24,$23
275
sh $24,S
276
l.s $f18,f
277
l.s $f16,L.9
278
c.ult.s $f18,$f16; bc1t L.14
279
sub.s $f16,$f18,$f16
280
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
281
la $22,0x80000000($24)
282
b L.15
283
L.14:
284
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
285
move $22,$24
286
L.15:
287
sw $22,I
288
l.s $f18,f
289
l.s $f16,L.9
290
c.ult.s $f18,$f16; bc1t L.17
291
sub.s $f16,$f18,$f16
292
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
293
la $21,0x80000000($24)
294
b L.18
295
L.17:
296
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
297
move $21,$24
298
L.18:
299
sw $21,L
300
l.s $f18,f
301
cvt.d.s $f18,$f18
302
s.d $f18,d
303
s.d $f18,D
304
jal print
305
l.d $f18,L.19
306
s.d $f18,d
307
l.d $f18,d
308
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
309
move $15,$24
310
sb $15,c
311
move $15,$24
312
sh $15,s
313
sw $24,i
314
sw $24,l
315
l.d $f16,L.23
316
c.ult.d $f18,$f16; bc1t L.21
317
sub.d $f16,$f18,$f16
318
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
319
la $20,0x80000000($24)
320
b L.22
321
L.21:
322
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
323
move $20,$24
324
L.22:
325
move $24,$20
326
sb $24,C
327
l.d $f18,d
328
l.d $f16,L.23
329
c.ult.d $f18,$f16; bc1t L.25
330
sub.d $f16,$f18,$f16
331
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
332
la $19,0x80000000($24)
333
b L.26
334
L.25:
335
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
336
move $19,$24
337
L.26:
338
move $24,$19
339
sh $24,S
340
l.d $f18,d
341
l.d $f16,L.23
342
c.ult.d $f18,$f16; bc1t L.28
343
sub.d $f16,$f18,$f16
344
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
345
la $18,0x80000000($24)
346
b L.29
347
L.28:
348
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
349
move $18,$24
350
L.29:
351
sw $18,I
352
l.d $f18,d
353
l.d $f16,L.23
354
c.ult.d $f18,$f16; bc1t L.31
355
sub.d $f16,$f18,$f16
356
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
357
la $17,0x80000000($24)
358
b L.32
359
L.31:
360
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
361
move $17,$24
362
L.32:
363
sw $17,L
364
l.d $f18,d
365
cvt.s.d $f16,$f18
366
s.s $f16,f
367
s.d $f18,D
368
jal print
369
l.d $f18,L.33
370
s.d $f18,D
371
l.d $f18,D
372
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
373
move $15,$24
374
sb $15,c
375
move $15,$24
376
sh $15,s
377
sw $24,i
378
sw $24,l
379
l.d $f16,L.37
380
c.ult.d $f18,$f16; bc1t L.35
381
sub.d $f16,$f18,$f16
382
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
383
la $16,0x80000000($24)
384
b L.36
385
L.35:
386
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
387
move $16,$24
388
L.36:
389
move $24,$16
390
sb $24,C
391
l.d $f18,D
392
l.d $f16,L.37
393
c.ult.d $f18,$f16; bc1t L.39
394
sub.d $f16,$f18,$f16
395
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
396
la $24,0x80000000($24)
397
sw $24,-4+80($sp)
398
b L.40
399
L.39:
400
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
401
sw $24,-4+80($sp)
402
L.40:
403
lw $24,-4+80($sp)
404
sh $24,S
405
l.d $f18,D
406
l.d $f16,L.37
407
c.ult.d $f18,$f16; bc1t L.42
408
sub.d $f16,$f18,$f16
409
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
410
la $24,0x80000000($24)
411
sw $24,-8+80($sp)
412
b L.43
413
L.42:
414
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
415
sw $24,-8+80($sp)
416
L.43:
417
lw $24,-8+80($sp)
418
sw $24,I
419
l.d $f18,D
420
l.d $f16,L.37
421
c.ult.d $f18,$f16; bc1t L.45
422
sub.d $f16,$f18,$f16
423
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
424
la $24,0x80000000($24)
425
sw $24,-12+80($sp)
426
b L.46
427
L.45:
428
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
429
sw $24,-12+80($sp)
430
L.46:
431
lw $24,-12+80($sp)
432
sw $24,L
433
l.d $f18,D
434
cvt.s.d $f16,$f18
435
s.s $f16,f
436
s.d $f18,d
437
jal print
438
sw $0,p
439
sw $0,p
440
sw $0,p
441
sw $0,p
442
lw $24,P
443
sw $24,p
444
sw $0,P
445
sw $0,P
446
sw $0,P
447
sw $0,P
448
lw $24,p
449
sw $24,P
450
move $2,$0
451
L.3:
452
lw $16,16($sp)
453
lw $17,20($sp)
454
lw $18,24($sp)
455
lw $19,28($sp)
456
lw $20,32($sp)
457
lw $21,36($sp)
458
lw $22,40($sp)
459
lw $23,44($sp)
460
lw $25,48($sp)
461
lw $30,52($sp)
462
lw $31,56($sp)
463
addu $sp,$sp,80
464
j $31
465
.end main
466
.globl P
467
.comm P,4
468
.globl p
469
.comm p,4
470
.globl D
471
.comm D,8
472
.globl d
473
.comm d,8
474
.globl f
475
.comm f,4
476
.globl L
477
.comm L,4
478
.globl I
479
.comm I,4
480
.globl S
481
.comm S,2
482
.globl C
483
.comm C,1
484
.globl l
485
.comm l,4
486
.globl i
487
.comm i,4
488
.globl s
489
.comm s,2
490
.globl c
491
.comm c,1
492
.rdata
493
.align 3
494
L.37:
495
.word 0x41e00000
496
.word 0x0
497
.align 3
498
L.33:
499
.word 0x40260000
500
.word 0x0
501
.align 3
502
L.23:
503
.word 0x41e00000
504
.word 0x0
505
.align 3
506
L.19:
507
.word 0x40240000
508
.word 0x0
509
.align 2
510
L.9:
511
.word 0x4f000000
512
.align 2
513
L.5:
514
.word 0x41100000
515
.align 3
516
L.4:
517
.word 0x40000000
518
.word 0x0
519
.align 0
520
L.2:
521
.byte 37
522
.byte 100
523
.byte 32
524
.byte 37
525
.byte 100
526
.byte 32
527
.byte 37
528
.byte 100
529
.byte 32
530
.byte 37
531
.byte 108
532
.byte 100
533
.byte 32
534
.byte 37
535
.byte 117
536
.byte 32
537
.byte 37
538
.byte 117
539
.byte 32
540
.byte 37
541
.byte 117
542
.byte 32
543
.byte 37
544
.byte 108
545
.byte 117
546
.byte 32
547
.byte 37
548
.byte 102
549
.byte 32
550
.byte 37
551
.byte 102
552
.byte 32
553
.byte 37
554
.byte 108
555
.byte 102
556
.byte 10
557
.byte 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.