fabs.S revision 114298
1#include <machine/asm.h>
2#if defined(LIBC_SCCS)
3	RCSID("$NetBSD: fabs.S,v 1.4 1997/07/16 14:37:16 christos Exp $")
4#endif
5__FBSDID("$FreeBSD: head/lib/libc/amd64/gen/fabs.S 114298 2003-04-30 16:21:03Z obrien $");
6
7/*
8 * Ok, this sucks. Is there really no way to push an xmm register onto
9 * the FP stack directly?
10 */
11
12ENTRY(fabs)
13	movsd	%xmm0, -8(%rsp)
14	fldl	-8(%rsp)
15	fabs
16	fstp	-8(%rsp)
17	movsd	-8(%rsp),%xmm0
18	ret
19