sim: bfin: import testsuite
[deliverable/binutils-gdb.git] / sim / testsuite / sim / bfin / stk5.s
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;
This page took 0.03001 seconds and 4 git commands to generate.