source: Deliverables/D2.3/8051/tests/clight/array.LIN.expected @ 453

Last change on this file since 453 was 453, checked in by ayache, 9 years ago

Import of the Paris's sources.

File size: 10.3 KB
Line 
1program
2
3globals 0
4
5procedure array_param(3)
6var 0
7array_param79:
8newframe
9c37:
10li    $a3, 1
11li    $v0, 4
12mulo    $v0, $zero, $v0
13add     $v0, $a0, $v0
14sw    $a3, 0($v0)
15c36:
16li    $a3, 1
17li    $v0, 4
18mulo    $v0, $a3, $v0
19add     $v0, $a0, $v0
20sw    $a1, 0($v0)
21c35:
22c34:
23li    $a1, 7
24li    $v0, 4
25mulo    $v0, $a2, $v0
26add     $v0, $a0, $v0
27sw    $a1, 0($v0)
28c33:
29li    $v0, 4
30mulo    $v0, $a2, $v0
31add     $v0, $a0, $v0
32lw    $v0, 0($v0)
33c32:
34c31:
35delframe
36jr    $ra
37
38procedure array_mixte(3)
39var 40
40array_mixte223:
41newframe
42c30:
43li    $t0, 0
44move    $a3, $sp
45li    $v0, 4
46mulo    $v0, $zero, $v0
47add     $v0, $a3, $v0
48sw    $t0, 0($v0)
49c29:
50move    $t0, $sp
51li    $a3, 1
52li    $v0, 4
53mulo    $v0, $a3, $v0
54add     $v0, $t0, $v0
55sw    $zero, 0($v0)
56c28:
57move    $t0, $sp
58li    $a3, 2
59li    $v0, 4
60mulo    $v0, $a3, $v0
61add     $v0, $t0, $v0
62sw    $zero, 0($v0)
63c27:
64move    $t0, $sp
65li    $a3, 3
66li    $v0, 4
67mulo    $v0, $a3, $v0
68add     $v0, $t0, $v0
69sw    $zero, 0($v0)
70c26:
71move    $t0, $sp
72li    $a3, 4
73li    $v0, 4
74mulo    $v0, $a3, $v0
75add     $v0, $t0, $v0
76sw    $zero, 0($v0)
77c25:
78move    $t0, $sp
79li    $a3, 5
80li    $v0, 4
81mulo    $v0, $a3, $v0
82add     $v0, $t0, $v0
83sw    $zero, 0($v0)
84c24:
85move    $t0, $sp
86li    $a3, 6
87li    $v0, 4
88mulo    $v0, $a3, $v0
89add     $v0, $t0, $v0
90sw    $zero, 0($v0)
91c23:
92move    $t0, $sp
93li    $a3, 7
94li    $v0, 4
95mulo    $v0, $a3, $v0
96add     $v0, $t0, $v0
97sw    $zero, 0($v0)
98c22:
99move    $t0, $sp
100li    $a3, 8
101li    $v0, 4
102mulo    $v0, $a3, $v0
103add     $v0, $t0, $v0
104sw    $zero, 0($v0)
105c21:
106move    $t0, $sp
107li    $a3, 9
108li    $v0, 4
109mulo    $v0, $a3, $v0
110add     $v0, $t0, $v0
111sw    $zero, 0($v0)
112c20:
113li    $v0, 4
114mulo    $v0, $a2, $v0
115add     $v0, $a0, $v0
116lw    $a3, 0($v0)
117li    $v0, 1
118add     $t0, $a3, $v0
119move    $a3, $sp
120li    $v0, 4
121mulo    $v0, $a1, $v0
122add     $v0, $a3, $v0
123sw    $t0, 0($v0)
124c19:
125move    $a3, $sp
126li    $v0, 4
127mulo    $v0, $zero, $v0
128add     $v0, $a3, $v0
129lw    $a3, 0($v0)
130li    $v0, 4
131mulo    $v0, $a2, $v0
132add     $v0, $a0, $v0
133sw    $a3, 0($v0)
134c18:
135li    $a2, 1
136li    $v0, 4
137mulo    $v0, $a2, $v0
138add     $v0, $a0, $v0
139lw    $a2, 0($v0)
140li    $v0, 4
141mulo    $v0, $a1, $v0
142add     $v0, $a0, $v0
143sw    $a2, 0($v0)
144c17:
145li    $v0, 4
146mulo    $v0, $a1, $v0
147add     $v0, $sp, $v0
148lw    $v0, 0($v0)
149delframe
150jr    $ra
151
152procedure array_local(0)
153var 40
154array_local234:
155newframe
156c16:
157li    $a1, 0
158move    $a0, $sp
159li    $v0, 4
160mulo    $v0, $zero, $v0
161add     $v0, $a0, $v0
162sw    $a1, 0($v0)
163c15:
164move    $a1, $sp
165li    $a0, 1
166li    $v0, 4
167mulo    $v0, $a0, $v0
168add     $v0, $a1, $v0
169sw    $zero, 0($v0)
170c14:
171move    $a1, $sp
172li    $a0, 2
173li    $v0, 4
174mulo    $v0, $a0, $v0
175add     $v0, $a1, $v0
176sw    $zero, 0($v0)
177c13:
178move    $a1, $sp
179li    $a0, 3
180li    $v0, 4
181mulo    $v0, $a0, $v0
182add     $v0, $a1, $v0
183sw    $zero, 0($v0)
184c12:
185move    $a1, $sp
186li    $a0, 4
187li    $v0, 4
188mulo    $v0, $a0, $v0
189add     $v0, $a1, $v0
190sw    $zero, 0($v0)
191c11:
192move    $a1, $sp
193li    $a0, 5
194li    $v0, 4
195mulo    $v0, $a0, $v0
196add     $v0, $a1, $v0
197sw    $zero, 0($v0)
198c10:
199move    $a1, $sp
200li    $a0, 6
201li    $v0, 4
202mulo    $v0, $a0, $v0
203add     $v0, $a1, $v0
204sw    $zero, 0($v0)
205c9:
206move    $a1, $sp
207li    $a0, 7
208li    $v0, 4
209mulo    $v0, $a0, $v0
210add     $v0, $a1, $v0
211sw    $zero, 0($v0)
212c8:
213move    $a1, $sp
214li    $a0, 8
215li    $v0, 4
216mulo    $v0, $a0, $v0
217add     $v0, $a1, $v0
218sw    $zero, 0($v0)
219c7:
220move    $a1, $sp
221li    $a0, 9
222li    $v0, 4
223mulo    $v0, $a0, $v0
224add     $v0, $a1, $v0
225sw    $zero, 0($v0)
226c6:
227li    $a1, 1
228move    $a0, $sp
229li    $v0, 4
230mulo    $v0, $zero, $v0
231add     $v0, $a0, $v0
232sw    $a1, 0($v0)
233c5:
234li    $a2, 5
235move    $a1, $sp
236li    $a0, 1
237li    $v0, 4
238mulo    $v0, $a0, $v0
239add     $v0, $a1, $v0
240sw    $a2, 0($v0)
241c4:
242c3:
243li    $a2, 7
244move    $a1, $sp
245li    $a0, 1
246li    $v0, 4
247mulo    $v0, $a0, $v0
248add     $v0, $a1, $v0
249sw    $a2, 0($v0)
250c2:
251li    $a0, 1
252li    $v0, 4
253mulo    $v0, $a0, $v0
254add     $v0, $sp, $v0
255lw    $v0, 0($v0)
256c1:
257c0:
258delframe
259jr    $ra
260
261procedure _main(0)
262var 52
263main181:
264newframe
265sw    $ra, 48($sp)
266sw    $s1, 44($sp)
267sw    $s0, 40($sp)
268c51:
269li    $a1, 1
270move    $a0, $sp
271li    $v0, 4
272mulo    $v0, $zero, $v0
273add     $v0, $a0, $v0
274sw    $a1, 0($v0)
275c50:
276li    $a2, 2
277move    $a1, $sp
278li    $a0, 1
279li    $v0, 4
280mulo    $v0, $a0, $v0
281add     $v0, $a1, $v0
282sw    $a2, 0($v0)
283c49:
284li    $a2, 3
285move    $a1, $sp
286li    $a0, 2
287li    $v0, 4
288mulo    $v0, $a0, $v0
289add     $v0, $a1, $v0
290sw    $a2, 0($v0)
291c48:
292li    $a2, 4
293move    $a1, $sp
294li    $a0, 3
295li    $v0, 4
296mulo    $v0, $a0, $v0
297add     $v0, $a1, $v0
298sw    $a2, 0($v0)
299c47:
300li    $a2, 5
301move    $a1, $sp
302li    $a0, 4
303li    $v0, 4
304mulo    $v0, $a0, $v0
305add     $v0, $a1, $v0
306sw    $a2, 0($v0)
307c46:
308li    $a2, 6
309move    $a1, $sp
310li    $a0, 5
311li    $v0, 4
312mulo    $v0, $a0, $v0
313add     $v0, $a1, $v0
314sw    $a2, 0($v0)
315c45:
316li    $a2, 7
317move    $a1, $sp
318li    $a0, 6
319li    $v0, 4
320mulo    $v0, $a0, $v0
321add     $v0, $a1, $v0
322sw    $a2, 0($v0)
323c44:
324li    $a2, 8
325move    $a1, $sp
326li    $a0, 7
327li    $v0, 4
328mulo    $v0, $a0, $v0
329add     $v0, $a1, $v0
330sw    $a2, 0($v0)
331c43:
332li    $a2, 9
333move    $a1, $sp
334li    $a0, 8
335li    $v0, 4
336mulo    $v0, $a0, $v0
337add     $v0, $a1, $v0
338sw    $a2, 0($v0)
339c42:
340move    $a1, $sp
341li    $a0, 9
342li    $v0, 4
343mulo    $v0, $a0, $v0
344add     $v0, $a1, $v0
345sw    $zero, 0($v0)
346c41:
347la    $v0, array_local
348call  $v0
349move    $s0, $v0
350c40:
351move    $a0, $sp
352li    $a1, 2
353li    $a2, 3
354la    $v0, array_mixte
355call  $v0
356move    $s1, $v0
357c39:
358move    $a0, $sp
359li    $a1, 2
360li    $a2, 3
361la    $v0, array_param
362call  $v0
363c38:
364add     $a0, $s0, $s1
365add     $v0, $a0, $v0
366lw    $ra, 48($sp)
367lw    $s1, 44($sp)
368lw    $s0, 40($sp)
369delframe
370jr    $ra
371
372__builtin_varargs_start: int -> void
373
374
375__builtin_va_start: int -> int -> void
376
377
378__builtin_va_end: int -> void
379
380
381__builtin_va_copy: int -> int -> void
382
383
384__builtin_va_arg: int -> int -> void
385
386
387__builtin_types_compatible_p: int -> int -> int
388
389
390__builtin_tanl: float -> float
391
392
393__builtin_tanhl: float -> float
394
395
396__builtin_tanhf: float -> float
397
398
399__builtin_tanh: float -> float
400
401
402__builtin_tanf: float -> float
403
404
405__builtin_tan: float -> float
406
407
408__builtin_strspn: int -> int -> int
409
410
411__builtin_strpbrk: int -> int -> int
412
413
414__builtin_strncpy: int -> int -> int -> int
415
416
417__builtin_strncmp: int -> int -> int -> int
418
419
420__builtin_strncat: int -> int -> int -> int
421
422
423__builtin_strcspn: int -> int -> int
424
425
426__builtin_strcpy: int -> int -> int
427
428
429__builtin_strcmp: int -> int -> int
430
431
432__builtin_strchr: int -> int -> int
433
434
435__builtin_stpcpy: int -> int -> int
436
437
438__builtin_stdarg_start: int -> void
439
440
441__builtin_sqrtl: float -> float
442
443
444__builtin_sqrtf: float -> float
445
446
447__builtin_sqrt: float -> float
448
449
450__builtin_sinl: float -> float
451
452
453__builtin_sinhl: float -> float
454
455
456__builtin_sinhf: float -> float
457
458
459__builtin_sinh: float -> float
460
461
462__builtin_sinf: float -> float
463
464
465__builtin_sin: float -> float
466
467
468__builtin_return_address: int -> int
469
470
471__builtin_return: int -> void
472
473
474__builtin_powil: float -> int -> float
475
476
477__builtin_powif: float -> int -> float
478
479
480__builtin_powi: float -> int -> float
481
482
483__builtin_popcountll: int -> int
484
485
486__builtin_popcountl: int -> int
487
488
489__builtin_popcount: int -> int
490
491
492__builtin_parityll: int -> int
493
494
495__builtin_parityl: int -> int
496
497
498__builtin_parity: int -> int
499
500
501__builtin_object_size: int -> int -> int
502
503
504__builtin_next_arg: int
505
506
507__builtin_nansl: int -> float
508
509
510__builtin_nansf: int -> float
511
512
513__builtin_nans: int -> float
514
515
516__builtin_nanl: int -> float
517
518
519__builtin_nanf: int -> float
520
521
522__builtin_nan: int -> float
523
524
525__builtin_modfl: float -> int -> float
526
527
528__builtin_modff: float -> int -> float
529
530
531__builtin_mempcpy: int -> int -> int -> int
532
533
534__builtin_memcpy: int -> int -> int -> int
535
536
537__builtin_logl: float -> float
538
539
540__builtin_logf: float -> float
541
542
543__builtin_log10l: float -> float
544
545
546__builtin_log10f: float -> float
547
548
549__builtin_log10: float -> float
550
551
552__builtin_log: float -> float
553
554
555__builtin_ldexpl: float -> int -> float
556
557
558__builtin_ldexpf: float -> int -> float
559
560
561__builtin_ldexp: float -> int -> float
562
563
564__builtin_infl: float
565
566
567__builtin_inff: float
568
569
570__builtin_inf: float
571
572
573__builtin_huge_vall: float
574
575
576__builtin_huge_valf: float
577
578
579__builtin_huge_val: float
580
581
582__builtin_frexpl: float -> int -> float
583
584
585__builtin_frexpf: float -> int -> float
586
587
588__builtin_frexp: float -> int -> float
589
590
591__builtin_frame_address: int -> int
592
593
594__builtin_fmodl: float -> float
595
596
597__builtin_fmodf: float -> float
598
599
600__builtin_fmod: float -> float
601
602
603__builtin_floorl: float -> float
604
605
606__builtin_floorf: float -> float
607
608
609__builtin_floor: float -> float
610
611
612__builtin_ffsll: int -> int
613
614
615__builtin_ffsl: int -> int
616
617
618__builtin_ffs: int -> int
619
620
621__builtin_fabsl: float -> float
622
623
624__builtin_fabsf: float -> float
625
626
627__builtin_fabs: float -> float
628
629
630__builtin_expl: float -> float
631
632
633__builtin_expf: float -> float
634
635
636__builtin_expect: int -> int -> int
637
638
639__builtin_exp: float -> float
640
641
642__builtin_ctzll: int -> int
643
644
645__builtin_ctzl: int -> int
646
647
648__builtin_ctz: int -> int
649
650
651__builtin_cosl: float -> float
652
653
654__builtin_coshl: float -> float
655
656
657__builtin_coshf: float -> float
658
659
660__builtin_cosh: float -> float
661
662
663__builtin_cosf: float -> float
664
665
666__builtin_cos: float -> float
667
668
669__builtin_constant_p: int -> int
670
671
672__builtin_clzll: int -> int
673
674
675__builtin_clzl: int -> int
676
677
678__builtin_clz: int -> int
679
680
681__builtin_ceill: float -> float
682
683
684__builtin_ceilf: float -> float
685
686
687__builtin_ceil: float -> float
688
689
690__builtin_atanl: float -> float
691
692
693__builtin_atanf: float -> float
694
695
696__builtin_atan2l: float -> float -> float
697
698
699__builtin_atan2f: float -> float -> float
700
701
702__builtin_atan2: float -> float -> float
703
704
705__builtin_atan: float -> float
706
707
708__builtin_asinl: float -> float
709
710
711__builtin_asinf: float -> float
712
713
714__builtin_asin: float -> float
715
716
717__builtin_alloca: int -> int
718
719
720__builtin_acosl: float -> float
721
722
723__builtin_acosf: float -> float
724
725
726__builtin_acos: float -> float
727
728
729__builtin___vsprintf_chk: int -> int -> int -> int -> int -> int
730
731
732__builtin___vsnprintf_chk: int -> int -> int -> int -> int -> int -> int
733
734
735__builtin___vprintf_chk: int -> int -> int -> int
736
737
738__builtin___vfprintf_chk: int -> int -> int -> int -> int
739
740
741__builtin___strncpy_chk: int -> int -> int -> int -> int
742
743
744__builtin___strncat_chk: int -> int -> int -> int -> int
745
746
747__builtin___strcpy_chk: int -> int -> int -> int
748
749
750__builtin___strcat_chk: int -> int -> int -> int
751
752
753__builtin___stpcpy_chk: int -> int -> int -> int
754
755
756__builtin___memset_chk: int -> int -> int -> int -> int
757
758
759__builtin___mempcpy_chk: int -> int -> int -> int -> int
760
761
762__builtin___memmove_chk: int -> int -> int -> int -> int
763
764
765__builtin___memcpy_chk: int -> int -> int -> int -> int
766
767
Note: See TracBrowser for help on using the repository browser.