Statistics
| Branch: | Revision:

root / tests / lm32 / test_ori.S @ d65f0831

History | View | Annotate | Download (392 Bytes)

1 d65f0831 Michael Walle
.include "macros.inc"
2 d65f0831 Michael Walle
3 d65f0831 Michael Walle
start
4 d65f0831 Michael Walle
5 d65f0831 Michael Walle
test_name ORI_1
6 d65f0831 Michael Walle
mvi r1, 0
7 d65f0831 Michael Walle
ori r3, r1, 0
8 d65f0831 Michael Walle
check_r3 0
9 d65f0831 Michael Walle
10 d65f0831 Michael Walle
test_name ORI_2
11 d65f0831 Michael Walle
mvi r1, 0
12 d65f0831 Michael Walle
ori r3, r1, 1
13 d65f0831 Michael Walle
check_r3 1
14 d65f0831 Michael Walle
15 d65f0831 Michael Walle
test_name ORI_3
16 d65f0831 Michael Walle
mvi r1, 1
17 d65f0831 Michael Walle
ori r3, r1, 1
18 d65f0831 Michael Walle
check_r3 1
19 d65f0831 Michael Walle
20 d65f0831 Michael Walle
test_name ORI_4
21 d65f0831 Michael Walle
mvi r1, 1
22 d65f0831 Michael Walle
ori r3, r1, 0
23 d65f0831 Michael Walle
check_r3 1
24 d65f0831 Michael Walle
25 d65f0831 Michael Walle
test_name ORI_5
26 d65f0831 Michael Walle
load r1 0xaa55aa55
27 d65f0831 Michael Walle
ori r3, r1, 0x55aa
28 d65f0831 Michael Walle
check_r3 0xaa55ffff
29 d65f0831 Michael Walle
30 d65f0831 Michael Walle
test_name ORI_6
31 d65f0831 Michael Walle
load r3 0xaa55aa55
32 d65f0831 Michael Walle
ori r3, r3, 0x55aa
33 d65f0831 Michael Walle
check_r3 0xaa55ffff
34 d65f0831 Michael Walle
35 d65f0831 Michael Walle
end