root / tests / cris / check_movsm.s @ f97572e5
History | View | Annotate | Download (616 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 | |
9 | dd43edf4 | ths | .data |
10 | dd43edf4 | ths | x: |
11 | dd43edf4 | ths | .byte 5,-11 |
12 | dd43edf4 | ths | .word 5,-11 |
13 | dd43edf4 | ths | .word 0 |
14 | dd43edf4 | ths | |
15 | dd43edf4 | ths | start |
16 | dd43edf4 | ths | move.d x,r5 |
17 | dd43edf4 | ths | |
18 | dd43edf4 | ths | moveq -1,r3 |
19 | dd43edf4 | ths | movs.b [r5+],r3 |
20 | dd43edf4 | ths | test_move_cc 0 0 0 0 |
21 | dd43edf4 | ths | checkr3 5 |
22 | dd43edf4 | ths | |
23 | dd43edf4 | ths | moveq 0,r3 |
24 | dd43edf4 | ths | movs.b [r5],r3 |
25 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
26 | dd43edf4 | ths | addq 1,r5 |
27 | dd43edf4 | ths | checkr3 fffffff5 |
28 | dd43edf4 | ths | |
29 | dd43edf4 | ths | moveq -1,r3 |
30 | dd43edf4 | ths | movs.w [r5+],r3 |
31 | dd43edf4 | ths | test_move_cc 0 0 0 0 |
32 | dd43edf4 | ths | checkr3 5 |
33 | dd43edf4 | ths | |
34 | dd43edf4 | ths | moveq 0,r3 |
35 | dd43edf4 | ths | movs.w [r5],r3 |
36 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
37 | dd43edf4 | ths | addq 2,r5 |
38 | dd43edf4 | ths | checkr3 fffffff5 |
39 | dd43edf4 | ths | |
40 | dd43edf4 | ths | movs.w [r5],r3 |
41 | dd43edf4 | ths | test_move_cc 0 1 0 0 |
42 | dd43edf4 | ths | checkr3 0 |
43 | dd43edf4 | ths | |
44 | dd43edf4 | ths | quit |