1# sh testcase for mov.l @$rm+, $rn -*- Asm -*-
2# mach: all
3# as: -isa=shcompact
4# ld: -m shelf32
5
6	.include "compact/testutils.inc"
7
8	start
9
10	mov #30, r0
11	shll8 r0
12	# Preserve address.
13	mov r0, r7
14	# Store something first.
15	mov #170, r3
16	mov.l r3, @r0
17
18	mov.l @r0+, r1
19check:
20	cmp/eq r1, r3
21	bf wrong
22
23	# Ensure address is post-incremented.
24	add #4, r7
25	cmp/eq r7, r0
26	bf wrong
27
28equal:
29	# Test rm = rn.
30	mov #30, r0
31	shll8 r0
32	mov.l @r0+, r0
33
34okay:
35	pass
36wrong:
37	fail
38