Statistics
| Branch: | Revision:

root / tests / tcg / cris / check_movecr.s @ c09015dd

History | View | Annotate | Download (663 Bytes)

1 dd43edf4 ths
# mach: crisv3 crisv8 crisv10 crisv32
2 dd43edf4 ths
# output: ffffff42\n94\nffff4321\n9234\n76543210\n76540000\n
3 dd43edf4 ths
4 dd43edf4 ths
; Move constant byte, word, dword to register.  Check that no extension is
5 dd43edf4 ths
; performed, that only part of the register is set.
6 dd43edf4 ths
7 dd43edf4 ths
 .include "testutils.inc"
8 dd43edf4 ths
 startnostack
9 dd43edf4 ths
 moveq -1,r3
10 dd43edf4 ths
 move.b 0x42,r3
11 dd43edf4 ths
 test_move_cc 0 0 0 0
12 dd43edf4 ths
 checkr3 ffffff42
13 dd43edf4 ths
14 dd43edf4 ths
 moveq 0,r3
15 dd43edf4 ths
 move.b 0x94,r3
16 dd43edf4 ths
 test_move_cc 1 0 0 0
17 dd43edf4 ths
 checkr3 94
18 dd43edf4 ths
19 dd43edf4 ths
 moveq -1,r3
20 dd43edf4 ths
 move.w 0x4321,r3
21 dd43edf4 ths
 test_move_cc 0 0 0 0
22 dd43edf4 ths
 checkr3 ffff4321
23 dd43edf4 ths
24 dd43edf4 ths
 moveq 0,r3
25 dd43edf4 ths
 move.w 0x9234,r3
26 dd43edf4 ths
 test_move_cc 1 0 0 0
27 dd43edf4 ths
 checkr3 9234
28 dd43edf4 ths
29 dd43edf4 ths
 move.d 0x76543210,r3
30 dd43edf4 ths
 test_move_cc 0 0 0 0
31 dd43edf4 ths
 checkr3 76543210
32 dd43edf4 ths
33 dd43edf4 ths
 move.w 0,r3
34 dd43edf4 ths
 test_move_cc 0 1 0 0
35 dd43edf4 ths
 checkr3 76540000
36 dd43edf4 ths
37 dd43edf4 ths
 quit