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
qerror: add qerror_report_err()
[qemu.git]
/
tests
/
lm32
/
test_add.S
blob
030ad197bb1e383e57d8affd0c0d0cbaa6a2ede8
1
.include "macros.inc"
2
3
start
4
5
test_name ADD_1
6
mvi r1, 0
7
mvi r2, 0
8
add r3, r1, r2
9
check_r3 0
10
11
test_name ADD_2
12
mvi r1, 0
13
mvi r2, 1
14
add r3, r1, r2
15
check_r3 1
16
17
test_name ADD_3
18
mvi r1, 1
19
mvi r2, 0
20
add r3, r1, r2
21
check_r3 1
22
23
test_name ADD_4
24
mvi r1, 1
25
mvi r2, -1
26
add r3, r1, r2
27
check_r3 0
28
29
test_name ADD_5
30
mvi r1, -1
31
mvi r2, 1
32
add r3, r1, r2
33
check_r3 0
34
35
test_name ADD_6
36
mvi r1, -1
37
mvi r2, 0
38
add r3, r1, r2
39
check_r3 -1
40
41
test_name ADD_7
42
mvi r1, 0
43
mvi r2, -1
44
add r3, r1, r2
45
check_r3 -1
46
47
test_name ADD_8
48
mvi r3, 2
49
add r3, r3, r3
50
check_r3 4
51
52
test_name ADD_9
53
mvi r1, 4
54
mvi r3, 2
55
add r3, r1, r3
56
check_r3 6
57
58
test_name ADD_10
59
mvi r1, 4
60
mvi r3, 2
61
add r3, r3, r1
62
check_r3 6
63
64
test_name ADD_11
65
mvi r1, 4
66
add r3, r1, r1
67
check_r3 8
68
69
test_name ADD_12
70
load r1 0x12345678
71
load r2 0xabcdef97
72
add r3, r1, r2
73
check_r3 0xbe02460f
74
75
end