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

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

Import of the Paris's sources.

File size: 6.7 KB
Line 
1program
2
3globals 40
4
5procedure _main(0)
6var 24
7main155:
8newframe
9sw    $ra, 20($sp)
10li    $a0, 1
11move    $v0, $gp
12sw    $a0, 0($v0)
13li    $a0, 2
14move    $v0, $gp
15sw    $a0, 4($v0)
16li    $a0, 3
17move    $v0, $gp
18sw    $a0, 8($v0)
19li    $a0, 5
20move    $v0, $gp
21sw    $a0, 12($v0)
22li    $a0, 8
23move    $v0, $gp
24sw    $a0, 16($v0)
25li    $a0, 13
26move    $v0, $gp
27sw    $a0, 20($v0)
28li    $a0, 21
29move    $v0, $gp
30sw    $a0, 24($v0)
31li    $a0, 34
32move    $v0, $gp
33sw    $a0, 28($v0)
34li    $a0, 55
35move    $v0, $gp
36sw    $a0, 32($v0)
37li    $a0, 89
38move    $v0, $gp
39sw    $a0, 36($v0)
40c11:
41li    $a1, 0
42move    $a0, $sp
43li    $v0, 4
44mulo    $v0, $zero, $v0
45add     $v0, $a0, $v0
46sw    $a1, 0($v0)
47c10:
48move    $a1, $sp
49li    $a0, 1
50li    $v0, 4
51mulo    $v0, $a0, $v0
52add     $v0, $a1, $v0
53sw    $zero, 0($v0)
54c9:
55move    $a1, $sp
56li    $a0, 2
57li    $v0, 4
58mulo    $v0, $a0, $v0
59add     $v0, $a1, $v0
60sw    $zero, 0($v0)
61c8:
62move    $a1, $sp
63li    $a0, 3
64li    $v0, 4
65mulo    $v0, $a0, $v0
66add     $v0, $a1, $v0
67sw    $zero, 0($v0)
68c7:
69move    $a1, $sp
70li    $a0, 4
71li    $v0, 4
72mulo    $v0, $a0, $v0
73add     $v0, $a1, $v0
74sw    $zero, 0($v0)
75c6:
76move    $a0, $gp
77move    $a1, $gp
78addi    $a1, $a1, 20
79move    $a2, $sp
80li    $a3, 5
81la    $v0, TB_Boucle
82call  $v0
83c5:
84li    $a0, 4
85li    $v0, 4
86mulo    $v0, $a0, $v0
87add     $v0, $sp, $v0
88lw    $v0, 0($v0)
89lw    $ra, 20($sp)
90delframe
91jr    $ra
92
93__builtin_varargs_start: int -> void
94
95
96__builtin_va_start: int -> int -> void
97
98
99__builtin_va_end: int -> void
100
101
102__builtin_va_copy: int -> int -> void
103
104
105__builtin_va_arg: int -> int -> void
106
107
108__builtin_types_compatible_p: int -> int -> int
109
110
111__builtin_tanl: float -> float
112
113
114__builtin_tanhl: float -> float
115
116
117__builtin_tanhf: float -> float
118
119
120__builtin_tanh: float -> float
121
122
123__builtin_tanf: float -> float
124
125
126__builtin_tan: float -> float
127
128
129__builtin_strspn: int -> int -> int
130
131
132__builtin_strpbrk: int -> int -> int
133
134
135__builtin_strncpy: int -> int -> int -> int
136
137
138__builtin_strncmp: int -> int -> int -> int
139
140
141__builtin_strncat: int -> int -> int -> int
142
143
144__builtin_strcspn: int -> int -> int
145
146
147__builtin_strcpy: int -> int -> int
148
149
150__builtin_strcmp: int -> int -> int
151
152
153__builtin_strchr: int -> int -> int
154
155
156__builtin_stpcpy: int -> int -> int
157
158
159__builtin_stdarg_start: int -> void
160
161
162__builtin_sqrtl: float -> float
163
164
165__builtin_sqrtf: float -> float
166
167
168__builtin_sqrt: float -> float
169
170
171__builtin_sinl: float -> float
172
173
174__builtin_sinhl: float -> float
175
176
177__builtin_sinhf: float -> float
178
179
180__builtin_sinh: float -> float
181
182
183__builtin_sinf: float -> float
184
185
186__builtin_sin: float -> float
187
188
189__builtin_return_address: int -> int
190
191
192__builtin_return: int -> void
193
194
195__builtin_powil: float -> int -> float
196
197
198__builtin_powif: float -> int -> float
199
200
201__builtin_powi: float -> int -> float
202
203
204__builtin_popcountll: int -> int
205
206
207__builtin_popcountl: int -> int
208
209
210__builtin_popcount: int -> int
211
212
213__builtin_parityll: int -> int
214
215
216__builtin_parityl: int -> int
217
218
219__builtin_parity: int -> int
220
221
222__builtin_object_size: int -> int -> int
223
224
225__builtin_next_arg: int
226
227
228__builtin_nansl: int -> float
229
230
231__builtin_nansf: int -> float
232
233
234__builtin_nans: int -> float
235
236
237__builtin_nanl: int -> float
238
239
240__builtin_nanf: int -> float
241
242
243__builtin_nan: int -> float
244
245
246__builtin_modfl: float -> int -> float
247
248
249__builtin_modff: float -> int -> float
250
251
252__builtin_mempcpy: int -> int -> int -> int
253
254
255__builtin_memcpy: int -> int -> int -> int
256
257
258__builtin_logl: float -> float
259
260
261__builtin_logf: float -> float
262
263
264__builtin_log10l: float -> float
265
266
267__builtin_log10f: float -> float
268
269
270__builtin_log10: float -> float
271
272
273__builtin_log: float -> float
274
275
276__builtin_ldexpl: float -> int -> float
277
278
279__builtin_ldexpf: float -> int -> float
280
281
282__builtin_ldexp: float -> int -> float
283
284
285__builtin_infl: float
286
287
288__builtin_inff: float
289
290
291__builtin_inf: float
292
293
294__builtin_huge_vall: float
295
296
297__builtin_huge_valf: float
298
299
300__builtin_huge_val: float
301
302
303__builtin_frexpl: float -> int -> float
304
305
306__builtin_frexpf: float -> int -> float
307
308
309__builtin_frexp: float -> int -> float
310
311
312__builtin_frame_address: int -> int
313
314
315__builtin_fmodl: float -> float
316
317
318__builtin_fmodf: float -> float
319
320
321__builtin_fmod: float -> float
322
323
324__builtin_floorl: float -> float
325
326
327__builtin_floorf: float -> float
328
329
330__builtin_floor: float -> float
331
332
333__builtin_ffsll: int -> int
334
335
336__builtin_ffsl: int -> int
337
338
339__builtin_ffs: int -> int
340
341
342__builtin_fabsl: float -> float
343
344
345__builtin_fabsf: float -> float
346
347
348__builtin_fabs: float -> float
349
350
351__builtin_expl: float -> float
352
353
354__builtin_expf: float -> float
355
356
357__builtin_expect: int -> int -> int
358
359
360__builtin_exp: float -> float
361
362
363__builtin_ctzll: int -> int
364
365
366__builtin_ctzl: int -> int
367
368
369__builtin_ctz: int -> int
370
371
372__builtin_cosl: float -> float
373
374
375__builtin_coshl: float -> float
376
377
378__builtin_coshf: float -> float
379
380
381__builtin_cosh: float -> float
382
383
384__builtin_cosf: float -> float
385
386
387__builtin_cos: float -> float
388
389
390__builtin_constant_p: int -> int
391
392
393__builtin_clzll: int -> int
394
395
396__builtin_clzl: int -> int
397
398
399__builtin_clz: int -> int
400
401
402__builtin_ceill: float -> float
403
404
405__builtin_ceilf: float -> float
406
407
408__builtin_ceil: float -> float
409
410
411__builtin_atanl: float -> float
412
413
414__builtin_atanf: float -> float
415
416
417__builtin_atan2l: float -> float -> float
418
419
420__builtin_atan2f: float -> float -> float
421
422
423__builtin_atan2: float -> float -> float
424
425
426__builtin_atan: float -> float
427
428
429__builtin_asinl: float -> float
430
431
432__builtin_asinf: float -> float
433
434
435__builtin_asin: float -> float
436
437
438__builtin_alloca: int -> int
439
440
441__builtin_acosl: float -> float
442
443
444__builtin_acosf: float -> float
445
446
447__builtin_acos: float -> float
448
449
450__builtin___vsprintf_chk: int -> int -> int -> int -> int -> int
451
452
453__builtin___vsnprintf_chk: int -> int -> int -> int -> int -> int -> int
454
455
456__builtin___vprintf_chk: int -> int -> int -> int
457
458
459__builtin___vfprintf_chk: int -> int -> int -> int -> int
460
461
462__builtin___strncpy_chk: int -> int -> int -> int -> int
463
464
465__builtin___strncat_chk: int -> int -> int -> int -> int
466
467
468__builtin___strcpy_chk: int -> int -> int -> int
469
470
471__builtin___strcat_chk: int -> int -> int -> int
472
473
474__builtin___stpcpy_chk: int -> int -> int -> int
475
476
477__builtin___memset_chk: int -> int -> int -> int -> int
478
479
480__builtin___mempcpy_chk: int -> int -> int -> int -> int
481
482
483__builtin___memmove_chk: int -> int -> int -> int -> int
484
485
486__builtin___memcpy_chk: int -> int -> int -> int -> int
487
488
489procedure TB_Boucle(4)
490var 0
491TB_Boucle59:
492newframe
493c4:
494c3:
495li    $t0, 0
496TB_Boucle20:
497li    $t1, 0
498c2:
499slt     $v0, $t0, $a3
500seq     $v0, $v0, $zero
501beq     $v0, $t1, TB_Boucle15
502delframe
503jr    $ra
504TB_Boucle15:
505c0:
506li    $v0, 4
507mulo    $v0, $t0, $v0
508add     $v0, $a0, $v0
509lw    $t1, 0($v0)
510li    $v0, 4
511mulo    $v0, $t0, $v0
512add     $v0, $a1, $v0
513lw    $v0, 0($v0)
514add     $t1, $t1, $v0
515li    $v0, 4
516mulo    $v0, $t0, $v0
517add     $v0, $a2, $v0
518sw    $t1, 0($v0)
519c1:
520li    $v0, 1
521add     $t0, $t0, $v0
522j     TB_Boucle20
523
Note: See TracBrowser for help on using the repository browser.