Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (546 Bytes)

1 dd43edf4 ths
# mach: crisv3 crisv8 crisv10 crisv32
2 dd43edf4 ths
# output: 5\nf5\n5\nfff5\n0\n
3 dd43edf4 ths
4 dd43edf4 ths
; Movu between registers.  Check that zero-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
 movu.b [r5+],r3
19 dd43edf4 ths
 test_move_cc 0 0 0 0
20 dd43edf4 ths
 checkr3 5
21 dd43edf4 ths
22 dd43edf4 ths
 movu.b [r5],r3
23 dd43edf4 ths
 test_move_cc 0 0 0 0
24 dd43edf4 ths
 addq 1,r5
25 dd43edf4 ths
 checkr3 f5
26 dd43edf4 ths
27 dd43edf4 ths
 movu.w [r5+],r3
28 dd43edf4 ths
 test_move_cc 0 0 0 0
29 dd43edf4 ths
 checkr3 5
30 dd43edf4 ths
31 dd43edf4 ths
 movu.w [r5],r3
32 dd43edf4 ths
 test_move_cc 0 0 0 0
33 dd43edf4 ths
 addq 2,r5
34 dd43edf4 ths
 checkr3 fff5
35 dd43edf4 ths
36 dd43edf4 ths
 movu.w [r5],r3
37 dd43edf4 ths
 test_move_cc 0 1 0 0
38 dd43edf4 ths
 checkr3 0
39 dd43edf4 ths
40 dd43edf4 ths
 quit