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_modu.S
blob
42486900b44063f9ef2c42cec3f2b7788dba3fcc
1
.include "macros.inc"
2
3
start
4
5
test_name MODU_1
6
mvi r1, 0
7
mvi r2, 1
8
modu r3, r1, r2
9
check_r3 0
10
11
test_name MODU_2
12
mvi r1, 1
13
mvi r2, 1
14
modu r3, r1, r2
15
check_r3 0
16
17
test_name MODU_3
18
mvi r1, 3
19
mvi r2, 2
20
modu r3, r1, r2
21
check_r3 1
22
23
test_name MODU_4
24
mvi r1, 0
25
mvi r2, 0
26
modu r3, r1, r2
27
check_excp 16
28
29
test_name MODU_5
30
load r1 0xabcdef12
31
load r2 0x12345
32
modu r3, r1, r2
33
check_r3 0x3c12
34
35
end