repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
sim
/
testsuite
/
cris
/
asm
/
cmpc.ms
blob
8600f5f79195a0b0a17919c422672f27be69c164
1
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2
# output: ffffffff\n2\nffff\nffffffff\n78134452\nffffffff\n2\nffff\nfedaffff\n78134452\nffffffff\n2\nff\nfeda49ff\n78134452\n85649282\n
3
4
.include "testutils.inc"
5
start
6
moveq -1,r3
7
cmp.d -2,r3
8
test_cc 0 0 0 0
9
dumpr3 ; ffffffff
10
11
moveq 2,r3
12
cmp.d 1,r3
13
test_cc 0 0 0 0
14
dumpr3 ; 2
15
16
move.d 0xffff,r3
17
cmp.d -0xffff,r3
18
test_cc 0 0 0 1
19
dumpr3 ; ffff
20
21
moveq -1,r3
22
cmp.d 1,r3
23
test_cc 1 0 0 0
24
dumpr3 ; ffffffff
25
26
move.d 0x78134452,r3
27
cmp.d -0x5432f789,r3
28
test_cc 1 0 1 1
29
dumpr3 ; 78134452
30
31
moveq -1,r3
32
cmp.w -2,r3
33
test_cc 0 0 0 0
34
dumpr3 ; ffffffff
35
36
moveq 2,r3
37
cmp.w 1,r3
38
test_cc 0 0 0 0
39
dumpr3 ; 2
40
41
move.d 0xffff,r3
42
cmp.w 1,r3
43
test_cc 1 0 0 0
44
dumpr3 ; ffff
45
46
move.d 0xfedaffff,r3
47
cmp.w 1,r3
48
test_cc 1 0 0 0
49
dumpr3 ; fedaffff
50
51
move.d 0x78134452,r3
52
cmp.w 0x877,r3
53
test_cc 0 0 0 0
54
dumpr3 ; 78134452
55
56
moveq -1,r3
57
cmp.b -2,r3
58
test_cc 0 0 0 0
59
dumpr3 ; ffffffff
60
61
moveq 2,r3
62
cmp.b 1,r3
63
test_cc 0 0 0 0
64
dumpr3 ; 2
65
66
move.d 0xff,r3
67
cmp.b 1,r3
68
test_cc 1 0 0 0
69
dumpr3 ; ff
70
71
move.d 0xfeda49ff,r3
72
cmp.b 1,r3
73
test_cc 1 0 0 0
74
dumpr3 ; feda49ff
75
76
move.d 0x78134452,r3
77
cmp.b 0x77,r3
78
test_cc 1 0 0 1
79
dumpr3 ; 78134452
80
81
move.d 0x85649282,r3
82
cmp.b 0x82,r3
83
test_cc 0 1 0 0
84
dumpr3 ; 85649282
85
86
quit