Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv3 crisv8 crisv10 |
2 | # output: bed0bed1\nabedab0d\nbed0bed1\n | |
3 | ||
4 | # Test that move to and from special register and memory clears the | |
5 | # "prefixed" bit. | |
6 | ||
7 | .include "testutils.inc" | |
8 | .data | |
9 | w: | |
10 | .dword 0 | |
11 | y: | |
12 | .dword 0xbed0bed1 | |
13 | z: | |
14 | .dword 0xabedab0d | |
15 | ||
16 | start | |
17 | x: | |
18 | move.d y,r3 | |
19 | clear.d [w] | |
20 | move.d [r3],r3 | |
21 | dumpr3 ; bed0bed1 | |
22 | move.d z,r3 | |
23 | move [w+4],srp | |
24 | move.d [r3],r3 | |
25 | dumpr3 ; abedab0d | |
26 | move srp,r3 | |
27 | dumpr3 ; bed0bed1 | |
28 | quit |