blob: bba10224f6491ab4688adfe536e5ffc4774a45b9 [file] [log] [blame]
Michael Walled65f0832011-02-17 23:45:16 +01001.include "macros.inc"
2
3start
4
5test_name SH_1
6load r1 data
7load r2 0xf0f1aaaa
8sh (r1+0), r2
9check_mem data 0xaaaa0000
10
11test_name SH_2
Michael Wallea946ce82014-04-22 20:18:41 +020012load r1 data
Michael Walled65f0832011-02-17 23:45:16 +010013load r2 0xf0f1bbbb
14sh (r1+2), r2
15check_mem data 0xaaaabbbb
16
17test_name SH_3
Michael Wallea946ce82014-04-22 20:18:41 +020018load r1 data
Michael Walled65f0832011-02-17 23:45:16 +010019load r2 0xf0f1cccc
20sh (r1+-2), r2
21check_mem data0 0x0000cccc
22
23end
24
25.data
26 .align 4
27data0:
28 .byte 0, 0, 0, 0
29data:
30 .byte 0, 0, 0, 0
31data1:
32 .byte 0, 0, 0, 0