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
usb: Remove legacy -usbdevice options (host, serial, disk and net)
[qemu.git]
/
tests
/
tcg
/
lm32
/
test_sub.S
blob
44b74a9e103537fb905b54de1068b2ae7a3190b0
1
.include "macros.inc"
2
3
start
4
5
test_name SUB_1
6
mvi r1, 0
7
mvi r2, 0
8
sub r3, r1, r2
9
check_r3 0
10
11
test_name SUB_2
12
mvi r1, 0
13
mvi r2, 1
14
sub r3, r1, r2
15
check_r3 -1
16
17
test_name SUB_3
18
mvi r1, 1
19
mvi r2, 0
20
sub r3, r1, r2
21
check_r3 1
22
23
test_name SUB_4
24
mvi r1, 1
25
mvi r2, -1
26
sub r3, r1, r2
27
check_r3 2
28
29
test_name SUB_5
30
mvi r1, -1
31
mvi r2, 1
32
sub r3, r1, r2
33
check_r3 -2
34
35
test_name SUB_6
36
mvi r1, -1
37
mvi r2, 0
38
sub r3, r1, r2
39
check_r3 -1
40
41
test_name SUB_7
42
mvi r1, 0
43
mvi r2, -1
44
sub r3, r1, r2
45
check_r3 1
46
47
test_name SUB_8
48
mvi r3, 2
49
sub r3, r3, r3
50
check_r3 0
51
52
test_name SUB_9
53
mvi r1, 4
54
mvi r3, 2
55
sub r3, r1, r3
56
check_r3 2
57
58
test_name SUB_10
59
mvi r1, 4
60
mvi r3, 2
61
sub r3, r3, r1
62
check_r3 -2
63
64
test_name SUB_11
65
mvi r1, 4
66
sub r3, r1, r1
67
check_r3 0
68
69
test_name SUB_12
70
load r1 0x12345678
71
load r2 0xabcdef97
72
sub r3, r1, r2
73
check_r3 0x666666e1
74
75
end