# sh testcase for fcnvsd -*- Asm -*-
# mach: all
# as: -isa=shcompact
# ld: -m shelf32

	.include "compact/testutils.inc"

	start
	fldi1 fr0
	flds fr0, fpul
	_setpr
	fcnvsd fpul, dr2
	_clrpr

	# Convert back.
	_setpr
	fcnvds dr2, fpul
	_clrpr
	fsts fpul, fr1
	fcmp/eq fr0, fr1
	bf wrong

okay:
	pass

wrong:
	fail
