root / tests / cris / check_movsr.s @ f97572e5
History | View | Annotate | Download (691 Bytes)
1 | dd43edf4 | ths | # mach: crisv3 crisv8 crisv10 crisv32 |
---|---|---|---|
2 | dd43edf4 | ths | # output: 5\nfffffff5\n5\nfffffff5\n0\n |
3 | dd43edf4 | ths | |
4 | dd43edf4 | ths | ; Movs between registers. Check that sign-extension is performed and the |
5 | dd43edf4 | ths | ; full register is set. |
6 | dd43edf4 | ths | |
7 | dd43edf4 | ths | .include "testutils.inc" |
8 | dd43edf4 | ths | start |
9 | dd43edf4 | ths | moveq -1,r5 |
10 | dd43edf4 | ths | moveq 5,r4 |
11 | dd43edf4 | ths | move.b r4,r5 |
12 | dd43edf4 | ths | moveq -1,r3 |
13 | dd43edf4 | ths | movs.b r5,r3 |
14 | dd43edf4 | ths | test_move_cc 0 0 0 0 |
15 | dd43edf4 | ths | checkr3 5 |
16 | dd43edf4 | ths | |
17 | dd43edf4 | ths | moveq 0,r5 |
18 | dd43edf4 | ths | moveq -11,r4 |
19 | dd43edf4 | ths | move.b r4,r5 |
20 | dd43edf4 | ths | moveq 0,r3 |
21 | dd43edf4 | ths | movs.b r5,r3 |
22 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
23 | dd43edf4 | ths | checkr3 fffffff5 |
24 | dd43edf4 | ths | |
25 | dd43edf4 | ths | moveq -1,r5 |
26 | dd43edf4 | ths | moveq 5,r4 |
27 | dd43edf4 | ths | move.w r4,r5 |
28 | dd43edf4 | ths | moveq -1,r3 |
29 | dd43edf4 | ths | movs.w r5,r3 |
30 | dd43edf4 | ths | test_move_cc 0 0 0 0 |
31 | dd43edf4 | ths | checkr3 5 |
32 | dd43edf4 | ths | |
33 | dd43edf4 | ths | moveq 0,r5 |
34 | dd43edf4 | ths | moveq -11,r4 |
35 | dd43edf4 | ths | move.w r4,r5 |
36 | dd43edf4 | ths | moveq 0,r3 |
37 | dd43edf4 | ths | movs.w r5,r3 |
38 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
39 | dd43edf4 | ths | checkr3 fffffff5 |
40 | dd43edf4 | ths | |
41 | dd43edf4 | ths | moveq 0,r5 |
42 | dd43edf4 | ths | movs.b r5,r3 |
43 | dd43edf4 | ths | test_move_cc 0 1 0 0 |
44 | dd43edf4 | ths | checkr3 0 |
45 | dd43edf4 | ths | |
46 | dd43edf4 | ths | quit |