source: Deliverables/D2.2/8051/tests/clight/fib.LIN.expected @ 486

Last change on this file since 486 was 486, checked in by ayache, 8 years ago

Deliverable D2.2

File size: 586 bytes
Line 
1program
2
3globals 0
4
5procedure fib(1)
6var 12
7fib37:
8newframe
9sets  local(0), $ra
10sets  local(4), $s1
11sets  local(8), $s0
12move  $s1, $a0
13c4:
14li    $v0, 2
15slt   $v0, $s1, $v0
16beq   $v0, $zero, fib10
17c3:
18li    $v0, 1
19fib48:
20gets  $ra, local(0)
21gets  $s1, local(4)
22gets  $s0, local(8)
23delframe
24jr    $ra
25fib10:
26c2:
27li    $v0, 1
28subu  $a0, $s1, $v0
29call  fib
30move  $s0, $v0
31c1:
32li    $v0, 2
33subu  $a0, $s1, $v0
34call  fib
35c0:
36addu  $v0, $s0, $v0
37j     fib48
38
39procedure _main(0)
40var 4
41main17:
42newframe
43sets  local(0), $ra
44c6:
45li    $a0, 10
46call  fib
47c5:
48gets  $ra, local(0)
49delframe
50jr    $ra
51
Note: See TracBrowser for help on using the repository browser.