s390x/misc_helper.c: wrap IO instructions in BQL
[qemu/kevin.git] / tests / tcg / lm32 / test_sh.S
blobbba10224f6491ab4688adfe536e5ffc4774a45b9
1 .include "macros.inc"
3 start
5 test_name SH_1
6 load r1 data
7 load r2 0xf0f1aaaa
8 sh (r1+0), r2
9 check_mem data 0xaaaa0000
11 test_name SH_2
12 load r1 data
13 load r2 0xf0f1bbbb
14 sh (r1+2), r2
15 check_mem data 0xaaaabbbb
17 test_name SH_3
18 load r1 data
19 load r2 0xf0f1cccc
20 sh (r1+-2), r2
21 check_mem data0 0x0000cccc
23 end
25 .data
26         .align 4
27 data0:
28         .byte 0, 0, 0, 0
29 data:
30         .byte 0, 0, 0, 0
31 data1:
32         .byte 0, 0, 0, 0