Statistics
| Branch: | Revision:

root / tests / cris / check_movucr.s @ 2917dce4

History | View | Annotate | Download (514 Bytes)

1 dd43edf4 ths
# mach: crisv3 crisv8 crisv10 crisv32
2 dd43edf4 ths
# output: 42\n85\n7685\n8765\n0\n
3 dd43edf4 ths
4 dd43edf4 ths
; Move constant byte, word, dword to register.  Check that zero-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
 movu.b 0x42,r3
11 dd43edf4 ths
 test_move_cc 0 0 0 0
12 dd43edf4 ths
 checkr3 42
13 dd43edf4 ths
14 dd43edf4 ths
 moveq -1,r3
15 dd43edf4 ths
 movu.b 0x85,r3
16 dd43edf4 ths
 test_move_cc 0 0 0 0
17 dd43edf4 ths
 checkr3 85
18 dd43edf4 ths
19 dd43edf4 ths
 moveq -1,r3
20 dd43edf4 ths
 movu.w 0x7685,r3
21 dd43edf4 ths
 test_move_cc 0 0 0 0
22 dd43edf4 ths
 checkr3 7685
23 dd43edf4 ths
24 dd43edf4 ths
 moveq -1,r3
25 dd43edf4 ths
 movu.w 0x8765,r3
26 dd43edf4 ths
 test_move_cc 0 0 0 0
27 dd43edf4 ths
 checkr3 8765
28 dd43edf4 ths
29 dd43edf4 ths
 movu.b 0,r3
30 dd43edf4 ths
 test_move_cc 0 1 0 0
31 dd43edf4 ths
 checkr3 0
32 dd43edf4 ths
33 dd43edf4 ths
 quit