Commit | Line | Data |
---|---|---|
1d7b4a70 MF |
1 | # mach: bfin |
2 | ||
3 | .include "testutils.inc" | |
4 | start | |
5 | ||
6 | SP += -12; | |
7 | FP = SP; | |
8 | CALL _foo; | |
9 | ||
10 | pass | |
11 | ||
12 | ||
13 | _printf: | |
14 | LINK 0; | |
15 | [ -- SP ] = ( R7:7, P5:4 ); | |
16 | R5 = [ FP + 8 ]; | |
17 | DBGA ( R5.L , 0x1234 ); | |
18 | R5 = [ FP + 12 ]; | |
19 | DBGA ( R5.L , 0xdead ); | |
20 | ( R7:7, P5:4 ) = [ SP ++ ]; | |
21 | UNLINK; | |
22 | RTS; | |
23 | ||
24 | _foo: | |
25 | LINK 0; | |
26 | R5 = 0xdead (Z); | |
27 | [ -- SP ] = R5; | |
28 | R5 = 0x1234 (X); | |
29 | [ -- SP ] = R5; | |
30 | CALL _printf; | |
31 | P5 = 8; | |
32 | SP = SP + P5; | |
33 | UNLINK; | |
34 | RTS; |