repo.or.cz
/
qemu
/
aliguori.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scsi: add a bunch more common sense codes
[qemu/aliguori.git]
/
tests
/
lm32
/
test_addi.S
blob
68e766d1e57584a97c3ee361a041e91d6743b34d
1
.include "macros.inc"
2
3
start
4
5
test_name ADDI_1
6
mvi r1, 0
7
addi r3, r1, 0
8
check_r3 0
9
10
test_name ADDI_2
11
mvi r1, 0
12
addi r3, r1, 1
13
check_r3 1
14
15
test_name ADDI_3
16
mvi r1, 1
17
addi r3, r1, 0
18
check_r3 1
19
20
test_name ADDI_4
21
mvi r1, 1
22
addi r3, r1, -1
23
check_r3 0
24
25
test_name ADDI_5
26
mvi r1, -1
27
addi r3, r1, 1
28
check_r3 0
29
30
test_name ADDI_6
31
mvi r1, -1
32
addi r3, r1, 0
33
check_r3 -1
34
35
test_name ADDI_7
36
mvi r1, 0
37
addi r3, r1, -1
38
check_r3 -1
39
40
test_name ADDI_8
41
mvi r3, 4
42
addi r3, r3, 4
43
check_r3 8
44
45
test_name ADDI_9
46
mvi r3, 4
47
addi r3, r3, -4
48
check_r3 0
49
50
test_name ADDI_10
51
mvi r3, 4
52
addi r3, r3, -5
53
check_r3 -1
54
55
end
56