Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv8 crisv10 |
2 | # output: fffffffe\n | |
3 | # output: ffffffff\n | |
4 | # output: fffffffe\n | |
5 | # output: 1\n | |
6 | ||
7 | ; Check that carry is cleared on v8, v10. | |
8 | ||
9 | .include "testutils.inc" | |
10 | start | |
11 | moveq -1,r3 | |
12 | moveq 2,r4 | |
13 | setf c | |
14 | muls.d r4,r3 | |
15 | test_cc 1 0 0 0 | |
16 | dumpr3 ; fffffffe | |
17 | move mof,r3 | |
18 | dumpr3 ; ffffffff | |
19 | ||
20 | moveq -1,r3 | |
21 | moveq 2,r4 | |
22 | setf c | |
23 | mulu.d r4,r3 | |
24 | test_cc 0 0 1 0 | |
25 | dumpr3 ; fffffffe | |
26 | move mof,r3 | |
27 | dumpr3 ; 1 | |
28 | ||
29 | quit |