Michael Walle | d65f083 | 2011-02-17 23:45:16 +0100 | [diff] [blame] | 1 | .include "macros.inc" |
| 2 | |
| 3 | start |
| 4 | |
| 5 | test_name SH_1 |
| 6 | load r1 data |
| 7 | load r2 0xf0f1aaaa |
| 8 | sh (r1+0), r2 |
| 9 | check_mem data 0xaaaa0000 |
| 10 | |
| 11 | test_name SH_2 |
Michael Walle | a946ce8 | 2014-04-22 20:18:41 +0200 | [diff] [blame] | 12 | load r1 data |
Michael Walle | d65f083 | 2011-02-17 23:45:16 +0100 | [diff] [blame] | 13 | load r2 0xf0f1bbbb |
| 14 | sh (r1+2), r2 |
| 15 | check_mem data 0xaaaabbbb |
| 16 | |
| 17 | test_name SH_3 |
Michael Walle | a946ce8 | 2014-04-22 20:18:41 +0200 | [diff] [blame] | 18 | load r1 data |
Michael Walle | d65f083 | 2011-02-17 23:45:16 +0100 | [diff] [blame] | 19 | load r2 0xf0f1cccc |
| 20 | sh (r1+-2), r2 |
| 21 | check_mem data0 0x0000cccc |
| 22 | |
| 23 | end |
| 24 | |
| 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 |