Check how the compiler expects the return value of this function
by testing SOFTFLOATSPARC64_FOR_GCC. Should fix PR port-sparc64/20140.
This commit is contained in:
parent
913634c3a8
commit
912ab5ad59
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $ */
|
||||
/* $NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,7 +44,7 @@
|
|||
#if 0
|
||||
.asciz "@(#)fabs.s 8.1 (Berkeley) 6/4/93"
|
||||
#else
|
||||
RCSID("$NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $")
|
||||
RCSID("$NetBSD: fabs.S,v 1.3 2003/02/01 09:19:58 martin Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -52,7 +52,9 @@
|
|||
|
||||
|
||||
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