xref: /openbmc/qemu/tests/tcg/cris/bare/check_addq.s (revision 99d423e5)
1# mach: crisv3 crisv8 crisv10 crisv32
2# output: ffffffff\n0\n1\n100\n10000\n47\n67\na6\n80000001\n
3
4 .include "testutils.inc"
5 start
6 moveq -2,r3
7 addq 1,r3
8 test_cc 1 0 0 0
9 checkr3 ffffffff
10
11 addq 1,r3
12 test_cc 0 1 0 1
13 checkr3 0
14
15 addq 1,r3
16 test_cc 0 0 0 0
17 checkr3 1
18
19 move.d 0xff,r3
20 addq 1,r3
21 test_cc 0 0 0 0
22 checkr3 100
23
24 move.d 0xffff,r3
25 addq 1,r3
26 test_cc 0 0 0 0
27 checkr3 10000
28
29 move.d 0x42,r3
30 addq 5,r3
31 test_cc 0 0 0 0
32 checkr3 47
33
34 addq 32,r3
35 test_cc 0 0 0 0
36 checkr3 67
37
38 addq 63,r3
39 test_cc 0 0 0 0
40 checkr3 a6
41
42 move.d 0x7ffffffe,r3
43 addq 3,r3
44 test_cc 1 0 1 0
45 checkr3 80000001
46
47 quit
48