Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20201101.0' into...
[qemu/ar7.git] / tests / tcg / lm32 / test_lhu.S
blob8de7c5256026db827dd14565f0cab9795f607f13
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 load r1 data
12 lhu r3, (r1+2)
13 check_r3 0x7071
15 test_name LHU_3
16 load r1 data
17 lhu r3, (r1+-2)
18 check_r3 0x7c7d
20 test_name LHU_4
21 load r1 data_msb
22 lhu r3, (r1+0)
23 check_r3 0xfeff
25 test_name LHU_5
26 load r1 data_msb
27 lhu r3, (r1+2)
28 check_r3 0xf0f1
30 test_name LHU_6
31 load r1 data_msb
32 lhu r3, (r1+-2)
33 check_r3 0xfcfd
35 test_name LHU_7
36 load r3 data
37 lhu r3, (r3+0)
38 check_r3 0x7e7f
40 end
42 .data
43         .align 4
44         .byte 0x7a, 0x7b, 0x7c, 0x7d
45 data:
46         .byte 0x7e, 0x7f, 0x70, 0x71
47         .byte 0xfa, 0xfb, 0xfc, 0xfd
48 data_msb:
49         .byte 0xfe, 0xff, 0xf0, 0xf1