repo.or.cz
/
qemu
/
mdroth.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pc: fix wrong CMOS values for floppy drives
[qemu/mdroth.git]
/
tests
/
lm32
/
test_andhi.S
blob
4f73af550bcd99090efcc069ff85044a392efe3f
1
.include "macros.inc"
2
3
start
4
5
test_name ANDHI_1
6
mvi r1, 0
7
andhi r3, r1, 0
8
check_r3 0
9
10
test_name ANDHI_2
11
mvi r1, 1
12
andhi r3, r1, 1
13
check_r3 0
14
15
test_name ANDHI_3
16
load r1 0x000f0000
17
andhi r3, r1, 1
18
check_r3 0x00010000
19
20
test_name ANDHI_4
21
load r1 0xffffffff
22
andhi r3, r1, 0xffff
23
check_r3 0xffff0000
24
25
test_name ANDHI_5
26
load r1 0xffffffff
27
andhi r3, r1, 0
28
check_r3 0
29
30
test_name ANDHI_6
31
load r3 0x55aaffff
32
andhi r3, r3, 0xaaaa
33
check_r3 0x00aa0000
34
35
end