1# mach: all
2# output:
3# sim: --environment operating
4
5.include "t-macros.i"
6
7	start
8
9	; Test ld and st
10	ld r4, @foo
11	check 1 r4 0xdead
12
13	ldi r4, #0x2152
14	st r4, @foo
15	ld r4, @foo
16	check 2 r4 0x2152
17
18	; Test ld2w and st2w
19	ldi r4, #0xdead
20	st r4, @foo
21	ld2w r4, @foo
22	check2w2 3 r4 0xdead 0xf000
23
24	ldi r4, #0x2112
25	ldi r5, #0x1984
26	st2w r4, @foo
27	ld2w r4, @foo
28	check2w2 4 r4 0x2112 0x1984
29
30	.data
31	.align 2
32foo:	.short 0xdead
33bar:	.short 0xf000
34	.text
35
36	exit0
37