diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-02-08 07:42:32 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-02-08 07:42:32 +0000 |
commit | 802b59d10a192d6f57d9e5e5eaeb7715474d0a0e (patch) | |
tree | 8af05c4864e72eea57e86932688d818178d6271b | |
parent | ae94491670f5025f760b0dae68def9228d0ff56f (diff) |
Obey calling convention and use the right opcode (fabss -> fabsd); Fabulous...
(based on netbsd pr 20140)
-rw-r--r-- | lib/libc/arch/sparc64/gen/fabs.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/arch/sparc64/gen/fabs.S b/lib/libc/arch/sparc64/gen/fabs.S index 57a223c3841..3beb859a2fb 100644 --- a/lib/libc/arch/sparc64/gen/fabs.S +++ b/lib/libc/arch/sparc64/gen/fabs.S @@ -1,4 +1,4 @@ -/* $OpenBSD: fabs.S,v 1.1 2001/08/29 01:45:24 art Exp $ */ +/* $OpenBSD: fabs.S,v 1.2 2003/02/08 07:42:31 jason Exp $ */ /* $NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $ */ /* * Copyright (c) 1992, 1993 @@ -42,7 +42,5 @@ /* fabs - floating absolute value */ ENTRY(fabs) - stx %o0, [%sp + BIAS + 32] ! return value => %f0:f1 - ldd [%sp + BIAS + 32], %f0 ! (via kernel %o0/%o1 slot) retl - fabss %f0, %f0 ! return absolute value + fabsd %f0, %f0 ! return absolute value |