OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [addcv32r.ms] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# mach: crisv32
2
# output: 0\n0\n1\n1\n2\n1ffff\nfffffffe\ncc463bdc\n
3
 
4
 .include "testutils.inc"
5
 start
6
 clearf cz
7
 moveq 0,r3
8
 moveq 0,r4
9
 addc r4,r3
10
 test_cc 0 0 0 0
11
 dumpr3 ; 0
12
 
13
 setf z
14
 moveq 0,r3
15
 moveq 0,r4
16
 addc r4,r3
17
 test_cc 0 1 0 0
18
 dumpr3 ; 0
19
 
20
 setf cz
21
 moveq 0,r3
22
 moveq 0,r4
23
 addc r4,r3
24
 test_cc 0 0 0 0
25
 dumpr3 ; 1
26
 
27
 moveq -1,r3
28
 moveq 2,r4
29
 addc r4,r3
30
 test_cc 0 0 0 1
31
 dumpr3 ; 1+c
32
 
33
 moveq 2,r3
34
 moveq -1,r4
35
 addc r4,r3
36
 test_cc 0 0 0 1
37
 dumpr3 ; 2+c
38
 
39
 move.d 0xffff,r4
40
 move.d r4,r3
41
 addc r4,r3
42
 test_cc 0 0 0 0
43
 dumpr3 ; 1ffff
44
 
45
 moveq -1,r4
46
 move.d r4,r3
47
 addc r4,r3
48
 test_cc 1 0 0 1
49
 dumpr3 ; fffffffe+c
50
 
51
 move.d 0x5432f789,r4
52
 move.d 0x78134452,r3
53
 addc r4,r3
54
 test_cc 1 0 1 0
55
 dumpr3 ; cc463bdc
56
 
57
 quit

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.