migration: move some declarations to migration.h
[qemu/lumag.git] / tests / lm32 / test_sw.S
blobd1fdadce6143b65ce0c3da4ac6709a7e3fd9977b
1 .include "macros.inc"
3 start
5 test_name SW_1
6 load r1 data
7 load r2 0xaabbccdd
8 sw (r1+0), r2
9 check_mem data 0xaabbccdd
11 test_name SW_2
12 load r2 0x00112233
13 sw (r1+4), r2
14 check_mem data1 0x00112233
16 test_name SW_3
17 load r2 0x44556677
18 sw (r1+-4), r2
19 check_mem data0 0x44556677
21 test_name SW_4
22 sw (r1+0), r1
23 lw r3, (r1+0)
24 check_r3 data
26 end
28 .data
29         .align 4
30 data0:
31         .byte 0, 0, 0, 0
32 data:
33         .byte 0, 0, 0, 0
34 data1:
35         .byte 0, 0, 0, 0