Statistics
| Branch: | Revision:

root / tests / cris / check_movei.s @ 7aaabde7

History | View | Annotate | Download (565 Bytes)

1 dd43edf4 ths
# mach: crisv32
2 dd43edf4 ths
# output: fffffffe\n
3 dd43edf4 ths
# output: fffffffe\n
4 dd43edf4 ths
5 dd43edf4 ths
; Check basic integral-write semantics regarding flags.
6 dd43edf4 ths
7 dd43edf4 ths
 .include "testutils.inc"
8 dd43edf4 ths
 start
9 dd43edf4 ths
10 dd43edf4 ths
; A write that works.  Check that flags are set correspondingly.
11 dd43edf4 ths
 move.d d,r4
12 dd43edf4 ths
 moveq -2,r5
13 dd43edf4 ths
 setf c
14 dd43edf4 ths
 clearf p
15 dd43edf4 ths
 move.d [r4],r3
16 dd43edf4 ths
 ax
17 dd43edf4 ths
 move.d r5,[r4]
18 dd43edf4 ths
 move.d [r4],r3
19 dd43edf4 ths
20 dd43edf4 ths
 bcc 0f
21 dd43edf4 ths
 nop
22 dd43edf4 ths
 fail
23 dd43edf4 ths
24 dd43edf4 ths
0:
25 dd43edf4 ths
 checkr3 fffffffe
26 dd43edf4 ths
27 dd43edf4 ths
; A write that fails; check flags too.
28 dd43edf4 ths
 move.d d,r4
29 dd43edf4 ths
 moveq 23,r5
30 dd43edf4 ths
 setf p
31 dd43edf4 ths
 clearf c
32 dd43edf4 ths
 move.d [r4],r3
33 dd43edf4 ths
 ax
34 dd43edf4 ths
 move.d r5,[r4]
35 dd43edf4 ths
 move.d [r4],r3
36 dd43edf4 ths
37 dd43edf4 ths
 bcs 0f
38 dd43edf4 ths
 nop
39 dd43edf4 ths
 fail
40 dd43edf4 ths
41 dd43edf4 ths
0:
42 dd43edf4 ths
 checkr3 fffffffe
43 dd43edf4 ths
 quit
44 dd43edf4 ths
45 dd43edf4 ths
 .data
46 dd43edf4 ths
d:
47 dd43edf4 ths
 .dword 42424242