Merge remote-tracking branch 'remotes/fam/tags/for-upstream' into staging
[qemu.git] / tests / tcg / lm32 / test_lb.S
blobd677eea4c48d4a8efdbfcf2303a10717ceb85dd3
1 .include "macros.inc"
3 start
5 test_name LB_1
6 load r1 data
7 lb r3, (r1+0)
8 check_r3 0x7e
10 test_name LB_2
11 load r1 data
12 lb r3, (r1+1)
13 check_r3 0x7f
15 test_name LB_3
16 load r1 data
17 lb r3, (r1+-1)
18 check_r3 0x7d
20 test_name LB_4
21 load r1 data_msb
22 lb r3, (r1+0)
23 check_r3 0xfffffffe
25 test_name LB_5
26 load r1 data_msb
27 lb r3, (r1+1)
28 check_r3 0xffffffff
30 test_name LB_6
31 load r1 data_msb
32 lb r3, (r1+-1)
33 check_r3 0xfffffffd
35 test_name LB_7
36 load r3 data
37 lb r3, (r3+0)
38 check_r3 0x7e
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