repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180615' into staging
[qemu.git]
/
tests
/
tcg
/
lm32
/
test_cmpgi.S
blob
21695f97ab9cc9f4fa9fa8b72b6cc9074d3fb9b1
1
.include "macros.inc"
2
3
start
4
5
test_name CMPGI_1
6
mvi r1, 0
7
cmpgi r3, r1, 0
8
check_r3 0
9
10
test_name CMPGI_2
11
mvi r1, 0
12
cmpgi r3, r1, 1
13
check_r3 0
14
15
test_name CMPGI_3
16
mvi r1, 1
17
cmpgi r3, r1, 0
18
check_r3 1
19
20
test_name CMPGI_4
21
mvi r1, 1
22
cmpgi r3, r1, 1
23
check_r3 0
24
25
test_name CMPGI_5
26
mvi r1, 0
27
cmpgi r3, r1, -1
28
check_r3 1
29
30
test_name CMPGI_6
31
mvi r1, -1
32
cmpgi r3, r1, 0
33
check_r3 0
34
35
test_name CMPGI_7
36
mvi r1, -1
37
cmpgi r3, r1, -1
38
check_r3 0
39
40
test_name CMPGI_8
41
mvi r3, 0
42
cmpgi r3, r3, 1
43
check_r3 0
44
45
test_name CMPGI_9
46
mvi r3, 1
47
cmpgi r3, r3, 0
48
check_r3 1
49
50
test_name CMPGI_10
51
mvi r3, 0
52
cmpgi r3, r3, 0
53
check_r3 0
54
55
test_name CMPGI_11
56
mvi r1, 0
57
cmpgi r3, r1, -32768
58
check_r3 1
59
60
test_name CMPGI_12
61
mvi r1, -1
62
cmpgi r3, r1, -32768
63
check_r3 1
64
65
test_name CMPGI_13
66
mvi r1, -32768
67
cmpgi r3, r1, -32768
68
check_r3 0
69
70
end