xref: /original-bsd/lib/libc/hp300/gen/cmpdf2.s (revision c3e32dec)
1/*-
2 * Copyright (c) 1990, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * the Systems Programming Group of the University of Utah Computer
7 * Science Department.
8 *
9 * %sccs.include.redist.c%
10 */
11
12#if defined(LIBC_SCCS) && !defined(lint)
13	.asciz "@(#)cmpdf2.s	8.1 (Berkeley) 06/04/93"
14#endif /* LIBC_SCCS and not lint */
15
16#include "DEFS.h"
17
18/* double > double: 1 */
19/* double < double: -1 */
20/* double == double: 0 */
21ENTRY(__cmpdf2)
22	fmoved	sp@(4),fp0
23	fcmpd	sp@(12),fp0
24	fbgt	Lagtb
25	fslt	d0
26	extbl	d0
27	rts
28Lagtb:
29	moveq	#1,d0
30	rts
31