Floating point argument should be in %f0 (sparcv9 ABI says).
This commit is contained in:
parent
f52a7c96ba
commit
64f9771a77
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $ */
|
||||
/* $NetBSD: fabs.S,v 1.4 2003/04/06 22:56:38 petrov Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -44,17 +44,13 @@
|
||||
#if 0
|
||||
.asciz "@(#)fabs.s 8.1 (Berkeley) 6/4/93"
|
||||
#else
|
||||
RCSID("$NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $")
|
||||
RCSID("$NetBSD: fabs.S,v 1.4 2003/04/06 22:56:38 petrov Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/* fabs - floating absolute value */
|
||||
|
||||
|
||||
ENTRY(fabs)
|
||||
#ifndef SOFTFLOATSPARC64_FOR_GCC
|
||||
stx %o0, [%sp + BIAS + 32] ! return value => %f0:f1
|
||||
ldd [%sp + BIAS + 32], %f0 ! (via kernel %o0/%o1 slot)
|
||||
#endif
|
||||
retl
|
||||
fabss %f0, %f0 ! return absolute value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user