Statistics
| Branch: | Revision:

root / tests / lm32 / test_lbu.S @ d65f0831

History | View | Annotate | Download (554 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 LBU_1
6 d65f0831 Michael Walle
load r1 data
7 d65f0831 Michael Walle
lbu r3, (r1+0)
8 d65f0831 Michael Walle
check_r3 0x7e
9 d65f0831 Michael Walle
10 d65f0831 Michael Walle
test_name LBU_2
11 d65f0831 Michael Walle
lbu r3, (r1+1)
12 d65f0831 Michael Walle
check_r3 0x7f
13 d65f0831 Michael Walle
14 d65f0831 Michael Walle
test_name LBU_3
15 d65f0831 Michael Walle
lbu r3, (r1+-1)
16 d65f0831 Michael Walle
check_r3 0x7d
17 d65f0831 Michael Walle
18 d65f0831 Michael Walle
test_name LBU_4
19 d65f0831 Michael Walle
load r1 data_msb
20 d65f0831 Michael Walle
lbu r3, (r1+0)
21 d65f0831 Michael Walle
check_r3 0xfe
22 d65f0831 Michael Walle
23 d65f0831 Michael Walle
test_name LBU_5
24 d65f0831 Michael Walle
lbu r3, (r1+1)
25 d65f0831 Michael Walle
check_r3 0xff
26 d65f0831 Michael Walle
27 d65f0831 Michael Walle
test_name LBU_6
28 d65f0831 Michael Walle
lbu r3, (r1+-1)
29 d65f0831 Michael Walle
check_r3 0xfd
30 d65f0831 Michael Walle
31 d65f0831 Michael Walle
test_name LBU_7
32 d65f0831 Michael Walle
load r3 data
33 d65f0831 Michael Walle
lbu r3, (r3+0)
34 d65f0831 Michael Walle
check_r3 0x7e
35 d65f0831 Michael Walle
36 d65f0831 Michael Walle
end
37 d65f0831 Michael Walle
38 d65f0831 Michael Walle
.data
39 d65f0831 Michael Walle
	.align 4
40 d65f0831 Michael Walle
	.byte 0x7a, 0x7b, 0x7c, 0x7d
41 d65f0831 Michael Walle
data:
42 d65f0831 Michael Walle
	.byte 0x7e, 0x7f, 0x70, 0x71
43 d65f0831 Michael Walle
	.byte 0xfa, 0xfb, 0xfc, 0xfd
44 d65f0831 Michael Walle
data_msb:
45 d65f0831 Michael Walle
	.byte 0xfe, 0xff, 0xf0, 0xf1