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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [cmpq.ms] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# mach: crisv3 crisv8 crisv10 crisv32
2
# output: 1\n1\n1\n1f\n1f\nffffffe1\nffffffe1\nffffffe0\n0\n0\nffffffff\nffffffff\n10000\n100\n5678900\n
3
 
4
 .include "testutils.inc"
5
 start
6
 moveq 1,r3
7
 cmpq 1,r3
8
 test_cc 0 1 0 0
9
 dumpr3 ; 1
10
 
11
 cmpq -1,r3
12
 test_cc 0 0 0 1
13
 dumpr3 ; 1
14
 
15
 cmpq 31,r3
16
 test_cc 1 0 0 1
17
 dumpr3 ; 1
18
 
19
 moveq 31,r3
20
 cmpq 31,r3
21
 test_cc 0 1 0 0
22
 dumpr3 ; 1f
23
 
24
 cmpq -31,r3
25
 test_cc 0 0 0 1
26
 dumpr3 ; 1f
27
 
28
 movs.b -31,r3
29
 cmpq -31,r3
30
 test_cc 0 1 0 0
31
 dumpr3 ; ffffffe1
32
 
33
 cmpq -32,r3
34
 test_cc 0 0 0 0
35
 dumpr3 ; ffffffe1
36
 
37
 movs.b -32,r3
38
 cmpq -32,r3
39
 test_cc 0 1 0 0
40
 dumpr3 ; ffffffe0
41
 
42
 moveq 0,r3
43
 cmpq 1,r3
44
 test_cc 1 0 0 1
45
 dumpr3 ; 0
46
 
47
 cmpq -32,r3
48
 test_cc 0 0 0 1
49
 dumpr3 ; 0
50
 
51
 moveq -1,r3
52
 cmpq 1,r3
53
 test_cc 1 0 0 0
54
 dumpr3 ; ffffffff
55
 
56
 cmpq -1,r3
57
 test_cc 0 1 0 0
58
 dumpr3 ; ffffffff
59
 
60
 move.d 0x10000,r3
61
 cmpq 1,r3
62
 test_cc 0 0 0 0
63
 dumpr3 ; 10000
64
 
65
 move.d 0x100,r3
66
 cmpq 1,r3
67
 test_cc 0 0 0 0
68
 dumpr3 ; 100
69
 
70
 move.d 0x5678900,r3
71
 cmpq 7,r3
72
 test_cc 0 0 0 0
73
 dumpr3 ; 5678900
74
 
75
 quit

powered by: WebSVN 2.1.0

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