Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / cris / bare / check_moverm.s
blobeabc9588d4241a96ecdd88114654631db5984411
1 # mach: crisv3 crisv8 crisv10 crisv32
2 # output: 7823fec2\n10231879\n102318fe\n
4 .include "testutils.inc"
5 start
7 .data
8 mem1:
9 .dword 0x12345678
10 mem2:
11 .word 0x4567
12 mem3:
13 .byte 0x23
14 .dword 0x76543210
15 .byte 0xaa,0x11,0x99
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
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
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
45 quit