OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh/] [flds.s] - Rev 157

Compare with Previous | Blame | View Log

# sh testcase for flds 
# mach: sh
# as(sh):	-defsym sim_cpu=0
 
	.include "testutils.inc"
 
	start
flds_zero:
	set_grs_a5a5
	set_fprs_a5a5
	fldi0	fr0
	flds	fr0, fpul
	fsts	fpul, fr1
	fcmp/eq	fr0, fr1
	bt	flds_one
	fail
flds_one:
	fldi1	fr0
	flds	fr0, fpul
	fsts	fpul, fr1
	fcmp/eq	fr0, fr1
	bt	.L0
	fail
.L0:
	test_grs_a5a5
	assert_fpreg_i	1, fr0
	assert_fpreg_i	1, fr1
	test_fpr_a5a5	fr2
	test_fpr_a5a5	fr3
	test_fpr_a5a5	fr4
	test_fpr_a5a5	fr5
	test_fpr_a5a5	fr6
	test_fpr_a5a5	fr7
	test_fpr_a5a5	fr8
	test_fpr_a5a5	fr9
	test_fpr_a5a5	fr10
	test_fpr_a5a5	fr11
	test_fpr_a5a5	fr12
	test_fpr_a5a5	fr13
	test_fpr_a5a5	fr14
	test_fpr_a5a5	fr15
	pass
	exit 0
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.