blob: bdb82c76c3d12213e885ffb127019671b3dcf163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# mach: bfin
.include "testutils.inc"
start
FP = SP;
CALL _foo;
pass
___main:
RTS;
_m1:
LINK 0;
R7 = [ FP + 8 ];
DBGA ( R0.L , 1 );
DBGA ( R1.L , 2 );
DBGA ( R7.L , 3 );
UNLINK;
RTS;
_m2:
LINK 0;
R7 = [ FP + 8 ];
DBGA ( R0.L , 1 );
DBGA ( R1.L , 2 );
DBGA ( R7.L , 3 );
[ -- SP ] = R7;
CALL _m1;
SP += 4;
UNLINK;
RTS;
_foo:
LINK 0;
CALL ___main;
R7 = 3;
[ -- SP ] = R7;
R0 = 1;
R1 = 2;
CALL _m2;
SP += 4;
UNLINK;
RTS;
|