summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/media/stw.cgs
blob: 2446aa627956617d7a5dae9a7d115c45f01057fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# sh testcase for st.q $rm, $disp10, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

	.include "media/testutils.inc"

	start

init:
	movi -1, r7
	xori r7, 13, r7
	movi 40, r0
	shlli r0, 8, r0

stw1:
	st.w r0, 0, r7

stw2:
	st.w r0, 2, r7

stw3:
	st.w r0, -2, r7

okay:
	pass