root / tests / tcg / cris / check_movscr.s @ c09015dd
History | View | Annotate | Download (473 Bytes)
1 | dd43edf4 | ths | # mach: crisv3 crisv8 crisv10 crisv32 |
---|---|---|---|
2 | dd43edf4 | ths | # output: 42\nffffff85\n7685\nffff8765\n0\n |
3 | dd43edf4 | ths | |
4 | dd43edf4 | ths | ; Move constant byte, word, dword to register. Check that sign-extension |
5 | dd43edf4 | ths | ; is performed. |
6 | dd43edf4 | ths | |
7 | dd43edf4 | ths | .include "testutils.inc" |
8 | dd43edf4 | ths | start |
9 | dd43edf4 | ths | moveq -1,r3 |
10 | dd43edf4 | ths | movs.b 0x42,r3 |
11 | dd43edf4 | ths | checkr3 42 |
12 | dd43edf4 | ths | |
13 | dd43edf4 | ths | movs.b 0x85,r3 |
14 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
15 | dd43edf4 | ths | checkr3 ffffff85 |
16 | dd43edf4 | ths | |
17 | dd43edf4 | ths | movs.w 0x7685,r3 |
18 | dd43edf4 | ths | test_move_cc 0 0 0 0 |
19 | dd43edf4 | ths | checkr3 7685 |
20 | dd43edf4 | ths | |
21 | dd43edf4 | ths | movs.w 0x8765,r3 |
22 | dd43edf4 | ths | test_move_cc 1 0 0 0 |
23 | dd43edf4 | ths | checkr3 ffff8765 |
24 | dd43edf4 | ths | |
25 | dd43edf4 | ths | movs.w 0,r3 |
26 | dd43edf4 | ths | test_move_cc 0 1 0 0 |
27 | dd43edf4 | ths | checkr3 0 |
28 | dd43edf4 | ths | |
29 | dd43edf4 | ths | quit |