Add 40-bit DMA support to LSI scsi emulation (Ryan Harper)
[qemu/qemu-JZ.git] / tests / cris / check_addxc.s
blob09c8355bf8f89fbfc0ea4d73ee2fdd9666379ac9
1 # mach: crisv0 crisv3 crisv8 crisv10 crisv32
2 # output: 1\n1\n101\n10001\n100fe\n1fffe\nfffe\nfffe\nfffffffe\nfe\nfffffffe\n781344db\n781343db\n78143bdb\n78133bdb\n800000ed\n0\n
4 .include "testutils.inc"
5 start
6 moveq 2,r3
7 adds.b 0xff,r3
8 test_cc 0 0 0 1
9 checkr3 1
11 moveq 2,r3
12 adds.w 0xffff,r3
13 test_cc 0 0 0 1
14 checkr3 1
16 moveq 2,r3
17 addu.b 0xff,r3
18 checkr3 101
20 moveq 2,r3
21 move.d 0xffffffff,r4
22 addu.w -1,r3
23 test_cc 0 0 0 0
24 checkr3 10001
26 move.d 0xffff,r3
27 addu.b -1,r3
28 test_cc 0 0 0 0
29 checkr3 100fe
31 move.d 0xffff,r3
32 addu.w -1,r3
33 test_cc 0 0 0 0
34 checkr3 1fffe
36 move.d 0xffff,r3
37 adds.b 0xff,r3
38 test_cc 0 0 0 1
39 checkr3 fffe
41 move.d 0xffff,r3
42 adds.w 0xffff,r3
43 test_cc 0 0 0 1
44 checkr3 fffe
46 moveq -1,r3
47 adds.b 0xff,r3
48 test_cc 1 0 0 1
49 checkr3 fffffffe
51 moveq -1,r3
52 adds.w 0xff,r3
53 test_cc 0 0 0 1
54 checkr3 fe
56 moveq -1,r3
57 adds.w 0xffff,r3
58 test_cc 1 0 0 1
59 checkr3 fffffffe
61 move.d 0x78134452,r3
62 addu.b 0x89,r3
63 test_cc 0 0 0 0
64 checkr3 781344db
66 move.d 0x78134452,r3
67 adds.b 0x89,r3
68 test_cc 0 0 0 1
69 checkr3 781343db
71 move.d 0x78134452,r3
72 addu.w 0xf789,r3
73 test_cc 0 0 0 0
74 checkr3 78143bdb
76 move.d 0x78134452,r3
77 adds.w 0xf789,r3
78 test_cc 0 0 0 1
79 checkr3 78133bdb
81 move.d 0x7fffffee,r3
82 addu.b 0xff,r3
83 test_cc 1 0 1 0
84 checkr3 800000ed
86 move.d 0x1,r3
87 adds.w 0xffff,r3
88 test_cc 0 1 0 1
89 checkr3 0
91 quit