Commit | Line | Data |
---|---|---|
632c75db HPN |
1 | # mach: crisv3 crisv8 crisv10 |
2 | ||
3 | # Make sure that "move [$sp=$sp+16],$p8" works; used in Linux. | |
4 | ||
5 | .include "testutils.inc" | |
6 | startnostack | |
7 | move.d x,$sp | |
8 | moveq 0,$r3 | |
9 | move [$sp=$sp+16],$p8 | |
10 | ; Z not changed. | |
11 | bne 0f | |
12 | nop | |
13 | cmp.d x+16,$sp | |
14 | bne 0f | |
15 | nop | |
16 | move $p8,$r3 | |
17 | ; Z not changed. | |
18 | bne 0f | |
19 | ; P8 still 0. | |
20 | test.d $r3 | |
21 | bne 0f | |
22 | nop | |
23 | pass | |
24 | 0: | |
25 | fail | |
26 | ||
27 | .data | |
28 | x: | |
29 | .dword 0xffffffff | |
30 | .dword 0xffffffff | |
31 | .dword 0xffffffff | |
32 | .dword 0xffffffff | |
33 | .dword 0xffffffff |