fabs.S revision 1.2
1/*	$NetBSD: fabs.S,v 1.2 2004/02/26 19:19:06 drochner Exp $	*/
2
3#include <machine/asm.h>
4#if defined(LIBC_SCCS)
5	RCSID("$NetBSD: fabs.S,v 1.2 2004/02/26 19:19:06 drochner Exp $")
6#endif
7
8/*
9 * Ok, this sucks. Is there really no way to push an xmm register onto
10 * the FP stack directly?
11 */
12
13ENTRY(fabs)
14	movsd	%xmm0, -8(%rsp)
15	fldl	-8(%rsp)
16	fabs
17	fstpl	-8(%rsp)
18	movsd	-8(%rsp),%xmm0
19	ret
20