summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/media/fstxd.cgs
blob: 10f6c1436b5069fedb23d51895be8eb49cb06f51 (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
27
28
29
30
31
# sh testcase for fstx.d $rm, $rn, $drf -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

	.include "media/testutils.inc"

	start

	.global fstxd
fstxd:
	movi 0x1020, r0
	shlli r0, 8, r0
	ori r0, 0x30, r0
	shlli r0, 8, r0
	ori r0, 0x40, r0
	shlli r0, 8, r0
	ori r0, 0x50, r0
	shlli r0, 8, r0
	ori r0, 0x60, r0
	shlli r0, 8, r0
	ori r0, 0x70, r0
	shlli r0, 8, r0
	ori r0, 0x80, r0
	fmov.qd r0, dr0
	movi 0x2800, r1
	movi -8, r2
	fstx.d r1, r2, dr0

okay:
	pass