1
2
3
4
5
6
7
8
9
10
11; Check that carry is not modified on v32.
12
13 .include "testutils.inc"
14 start
15 moveq -1,r3
16 moveq 2,r4
17 setf c
18 muls.d r4,r3
19 test_cc 1 0 0 1
20 checkr3 fffffffe
21 move mof,r3
22 checkr3 ffffffff
23
24 moveq -1,r3
25 moveq 2,r4
26 setf c
27 mulu.d r4,r3
28 test_cc 0 0 1 1
29 checkr3 fffffffe
30 move mof,r3
31 checkr3 1
32
33 moveq -1,r3
34 moveq 2,r4
35 clearf c
36 muls.d r4,r3
37 test_cc 1 0 0 0
38 checkr3 fffffffe
39 move mof,r3
40 checkr3 ffffffff
41
42 moveq -1,r3
43 moveq 2,r4
44 clearf c
45 mulu.d r4,r3
46 test_cc 0 0 1 0
47 checkr3 fffffffe
48 move mof,r3
49 checkr3 1
50
51 quit
52