repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tests/vm: add --build-target option
[qemu/ar7.git]
/
tests
/
tcg
/
lm32
/
test_andi.S
blob
da1b0a32f787ba49c42c0fe602e92955b3e9aada
1
.include "macros.inc"
2
3
start
4
5
test_name ANDI_1
6
mvi r1, 0
7
andi r3, r1, 0
8
check_r3 0
9
10
test_name ANDI_2
11
mvi r1, 1
12
andi r3, r1, 1
13
check_r3 1
14
15
test_name ANDI_3
16
load r1 0x000f0000
17
andi r3, r1, 1
18
check_r3 0
19
20
test_name ANDI_4
21
load r1 0xffffffff
22
andi r3, r1, 0xffff
23
check_r3 0xffff
24
25
test_name ANDI_5
26
load r1 0xffffffff
27
andi r3, r1, 0
28
check_r3 0
29
30
test_name ANDI_6
31
load r3 0xffff55aa
32
andi r3, r3, 0xaaaa
33
check_r3 0x000000aa
34
35
end