hw/omap1.c: Add fallthrough markers and breaks
[qemu/pbrook.git] / tests / tcg / lm32 / test_lhu.S
blobe648775d94baf65d95ad10b7aea1a827a264d82e
1 .include "macros.inc"
3 start
5 test_name LHU_1
6 load r1 data
7 lhu r3, (r1+0)
8 check_r3 0x7e7f
10 test_name LHU_2
11 lhu r3, (r1+2)
12 check_r3 0x7071
14 test_name LHU_3
15 lhu r3, (r1+-2)
16 check_r3 0x7c7d
18 test_name LHU_4
19 load r1 data_msb
20 lhu r3, (r1+0)
21 check_r3 0xfeff
23 test_name LHU_5
24 lhu r3, (r1+2)
25 check_r3 0xf0f1
27 test_name LHU_6
28 lhu r3, (r1+-2)
29 check_r3 0xfcfd
31 test_name LHU_7
32 load r3 data
33 lhu r3, (r3+0)
34 check_r3 0x7e7f
36 end
38 .data
39         .align 4
40         .byte 0x7a, 0x7b, 0x7c, 0x7d
41 data:
42         .byte 0x7e, 0x7f, 0x70, 0x71
43         .byte 0xfa, 0xfb, 0xfc, 0xfd
44 data_msb:
45         .byte 0xfe, 0xff, 0xf0, 0xf1