xref: /openbmc/qemu/tests/tcg/cris/bare/check_moverm.s (revision 20a4f14f)
1# mach: crisv3 crisv8 crisv10 crisv32
2# output: 7823fec2\n10231879\n102318fe\n
3
4 .include "testutils.inc"
5 start
6
7 .data
8mem1:
9 .dword 0x12345678
10mem2:
11 .word 0x4567
12mem3:
13 .byte 0x23
14 .dword 0x76543210
15 .byte 0xaa,0x11,0x99
16
17 .text
18 move.d mem1,r2
19 move.d 0x7823fec2,r4
20 setf nzvc
21 move.d r4,[r2+]
22 test_cc 1 1 1 1
23 subq 4,r2
24 move.d [r2],r3
25 checkr3 7823fec2
26
27 move.d mem2,r3
28 move.d 0x45231879,r4
29 clearf nzvc
30 move.w r4,[r3]
31 test_cc 0 0 0 0
32 move.d [r3],r3
33 checkr3 10231879
34
35 move.d mem2,r2
36 moveq -2,r4
37 clearf nc
38 setf zv
39 move.b r4,[r2+]
40 test_cc 0 1 1 0
41 subq 1,r2
42 move.d [r2],r3
43 checkr3 102318fe
44
45 quit
46