Merge branch 'master' of git://git.qemu.org/qemu
[qemu/mdroth.git] / tests / lm32 / test_lbu.S
blob4c1786ad717a242b00f88b9ef55e5d2612e9850d
1 .include "macros.inc"
3 start
5 test_name LBU_1
6 load r1 data
7 lbu r3, (r1+0)
8 check_r3 0x7e
10 test_name LBU_2
11 lbu r3, (r1+1)
12 check_r3 0x7f
14 test_name LBU_3
15 lbu r3, (r1+-1)
16 check_r3 0x7d
18 test_name LBU_4
19 load r1 data_msb
20 lbu r3, (r1+0)
21 check_r3 0xfe
23 test_name LBU_5
24 lbu r3, (r1+1)
25 check_r3 0xff
27 test_name LBU_6
28 lbu r3, (r1+-1)
29 check_r3 0xfd
31 test_name LBU_7
32 load r3 data
33 lbu r3, (r3+0)
34 check_r3 0x7e
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