root / tests / lm32 / test_lhu.S @ d65f0831
History | View | Annotate | Download (568 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 LHU_1 |
6 | d65f0831 | Michael Walle | load r1 data |
7 | d65f0831 | Michael Walle | lhu r3, (r1+0) |
8 | d65f0831 | Michael Walle | check_r3 0x7e7f |
9 | d65f0831 | Michael Walle | |
10 | d65f0831 | Michael Walle | test_name LHU_2 |
11 | d65f0831 | Michael Walle | lhu r3, (r1+2) |
12 | d65f0831 | Michael Walle | check_r3 0x7071 |
13 | d65f0831 | Michael Walle | |
14 | d65f0831 | Michael Walle | test_name LHU_3 |
15 | d65f0831 | Michael Walle | lhu r3, (r1+-2) |
16 | d65f0831 | Michael Walle | check_r3 0x7c7d |
17 | d65f0831 | Michael Walle | |
18 | d65f0831 | Michael Walle | test_name LHU_4 |
19 | d65f0831 | Michael Walle | load r1 data_msb |
20 | d65f0831 | Michael Walle | lhu r3, (r1+0) |
21 | d65f0831 | Michael Walle | check_r3 0xfeff |
22 | d65f0831 | Michael Walle | |
23 | d65f0831 | Michael Walle | test_name LHU_5 |
24 | d65f0831 | Michael Walle | lhu r3, (r1+2) |
25 | d65f0831 | Michael Walle | check_r3 0xf0f1 |
26 | d65f0831 | Michael Walle | |
27 | d65f0831 | Michael Walle | test_name LHU_6 |
28 | d65f0831 | Michael Walle | lhu r3, (r1+-2) |
29 | d65f0831 | Michael Walle | check_r3 0xfcfd |
30 | d65f0831 | Michael Walle | |
31 | d65f0831 | Michael Walle | test_name LHU_7 |
32 | d65f0831 | Michael Walle | load r3 data |
33 | d65f0831 | Michael Walle | lhu r3, (r3+0) |
34 | d65f0831 | Michael Walle | check_r3 0x7e7f |
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 |