repo.or.cz
/
qemu
/
agraf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
lm32
/
test_xnor.S
blob
14a62075f6754a595888bec34d6bb0e53ff7c11a
1
.include "macros.inc"
2
3
start
4
5
test_name XNOR_1
6
mvi r1, 0
7
mvi r2, 0
8
xnor r3, r1, r2
9
check_r3 0xffffffff
10
11
test_name XNOR_2
12
mvi r1, 0
13
mvi r2, 1
14
xnor r3, r1, r2
15
check_r3 0xfffffffe
16
17
test_name XNOR_3
18
mvi r1, 1
19
mvi r2, 1
20
xnor r3, r1, r2
21
check_r3 0xffffffff
22
23
test_name XNOR_4
24
mvi r1, 1
25
mvi r2, 0
26
xnor r3, r1, r2
27
check_r3 0xfffffffe
28
29
test_name XNOR_5
30
load r1 0xaa55aa55
31
load r2 0x55aa55aa
32
xnor r3, r1, r2
33
check_r3 0
34
35
test_name XNOR_6
36
load r1 0xaa550000
37
load r2 0x0000aa55
38
xnor r3, r1, r2
39
check_r3 0x55aa55aa
40
41
test_name XNOR_7
42
load r1 0xaa55aa55
43
xnor r3, r1, r1
44
check_r3 0xffffffff
45
46
test_name XNOR_8
47
load r3 0xaa55aa55
48
xnor r3, r3, r3
49
check_r3 0xffffffff
50
51
end