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
exec: Allocate code_gen_prologue from code_gen_buffer
[qemu.git]
/
tests
/
tcg
/
lm32
/
test_and.S
blob
80962ce7a29512446a0989683151ede373e9a70f
1
.include "macros.inc"
2
3
start
4
5
test_name AND_1
6
mvi r1, 0
7
mvi r2, 0
8
and r3, r1, r2
9
check_r3 0
10
11
test_name AND_2
12
mvi r1, 0
13
mvi r2, 1
14
and r3, r1, r2
15
check_r3 0
16
17
test_name AND_3
18
mvi r1, 1
19
mvi r2, 1
20
and r3, r1, r2
21
check_r3 1
22
23
test_name AND_4
24
mvi r3, 7
25
and r3, r3, r3
26
check_r3 7
27
28
test_name AND_5
29
mvi r1, 7
30
and r3, r1, r1
31
check_r3 7
32
33
test_name AND_6
34
mvi r1, 7
35
mvi r3, 0
36
and r3, r1, r3
37
check_r3 0
38
39
test_name AND_7
40
load r1 0xaa55aa55
41
load r2 0x55aa55aa
42
and r3, r1, r2
43
check_r3 0
44
45
end