source: Deliverables/D2.2/8051-memoryspaces-branch/tests/clight/testCOMP_tri.LIN.expected @ 1448

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

Import of the Paris's sources.

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