summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/media/fcmpgtd.cgs
blob: aec952097de66dd1f3714883c98abc8eec651d5a (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
# sh testcase for fcmpgt.d $drg, $drh, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

	.include "media/testutils.inc"

	start

init:
	pta wrong, tr0

fcmpgt1:
	movi 2, r0
	fmov.qd r0, dr0
	movi 1, r1
	fmov.qd r1, dr2
	float.qd dr0, dr4
	float.qd dr2, dr6
	fcmpgt.d dr4, dr6, r7
	bnei r7, 1, tr0 

fcmpgt2:
	movi 1, r0
	fmov.qd r0, dr0
	fmov.qd r0, dr2
	float.qd dr0, dr4
	float.qd dr2, dr6
	fcmpgt.d dr4, dr6, r7
	bnei r7, 0, tr0

okay:
	pass

wrong:
	fail