aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/sh/fldi0.s
blob: 1e2005832b0ac6bc28274803d4807b2b78e14c9c (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
32
33
34
35
36
37
# sh testcase for fldi0 $frn 
# mach: sh
# as(sh):	-defsym sim_cpu=0

	.include "testutils.inc"

	start
fldi0_single:
	set_grs_a5a5
	set_fprs_a5a5
	fldi0	fr0
	fldi0	fr2
	fldi0	fr4
	fldi0	fr6
	fldi0	fr8
	fldi0	fr10
	fldi0	fr12
	fldi0	fr14
	test_grs_a5a5
	assert_fpreg_i 0 fr0
	assert_fpreg_i 0 fr2
	assert_fpreg_i 0 fr4
	assert_fpreg_i 0 fr6
	assert_fpreg_i 0 fr8
	assert_fpreg_i 0 fr10
	assert_fpreg_i 0 fr12
	assert_fpreg_i 0 fr14
	assert_fpreg_x 0xa5a5a5a5 fr1
	assert_fpreg_x 0xa5a5a5a5 fr3
	assert_fpreg_x 0xa5a5a5a5 fr5
	assert_fpreg_x 0xa5a5a5a5 fr7
	assert_fpreg_x 0xa5a5a5a5 fr9
	assert_fpreg_x 0xa5a5a5a5 fr11
	assert_fpreg_x 0xa5a5a5a5 fr13
	assert_fpreg_x 0xa5a5a5a5 fr15
	pass
	exit 0