Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/m68k/gen When using the SVR4 ABI, just return ...
details: https://anonhg.NetBSD.org/src/rev/402db8a231b0
branches: trunk
changeset: 472574:402db8a231b0
user: kleink <kleink%NetBSD.org@localhost>
date: Sun May 02 20:17:20 1999 +0000
description:
When using the SVR4 ABI, just return floating point values in fp0.
diffstat:
lib/libc/arch/m68k/gen/adddf3.S | 6 ++++--
lib/libc/arch/m68k/gen/addsf3.S | 6 ++++--
lib/libc/arch/m68k/gen/divdf3.S | 6 ++++--
lib/libc/arch/m68k/gen/divsf3.S | 6 ++++--
lib/libc/arch/m68k/gen/extendsfdf2.S | 6 ++++--
lib/libc/arch/m68k/gen/fabs.S | 9 +++++++--
lib/libc/arch/m68k/gen/floatsidf.S | 6 ++++--
lib/libc/arch/m68k/gen/ldexp.S | 6 ++++--
lib/libc/arch/m68k/gen/modf.S | 6 ++++--
lib/libc/arch/m68k/gen/muldf3.S | 6 ++++--
lib/libc/arch/m68k/gen/mulsf3.S | 6 ++++--
lib/libc/arch/m68k/gen/negdf2.S | 8 ++++++--
lib/libc/arch/m68k/gen/negsf2.S | 8 ++++++--
lib/libc/arch/m68k/gen/subdf3.S | 6 ++++--
lib/libc/arch/m68k/gen/subsf3.S | 6 ++++--
lib/libc/arch/m68k/gen/truncdfsf2.S | 6 ++++--
16 files changed, 71 insertions(+), 32 deletions(-)
diffs (truncated from 433 to 300 lines):
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/adddf3.S
--- a/lib/libc/arch/m68k/gen/adddf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/adddf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adddf3.S,v 1.3 1997/04/25 00:58:43 thorpej Exp $ */
+/* $NetBSD: adddf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)adddf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: adddf3.S,v 1.3 1997/04/25 00:58:43 thorpej Exp $")
+ RCSID("$NetBSD: adddf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,7 +51,9 @@
ENTRY(__adddf3)
fmoved sp@(4),fp0
faddd sp@(12),fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/addsf3.S
--- a/lib/libc/arch/m68k/gen/addsf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/addsf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: addsf3.S,v 1.3 1997/04/25 00:58:43 thorpej Exp $ */
+/* $NetBSD: addsf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)addsf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: addsf3.S,v 1.3 1997/04/25 00:58:43 thorpej Exp $")
+ RCSID("$NetBSD: addsf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,5 +51,7 @@
ENTRY(__addsf3)
fmoves sp@(4),fp0
fadds sp@(8),fp0
+#ifndef __SVR4_ABI__
fmoves fp0,d0
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/divdf3.S
--- a/lib/libc/arch/m68k/gen/divdf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/divdf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: divdf3.S,v 1.3 1997/04/25 00:58:48 thorpej Exp $ */
+/* $NetBSD: divdf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)divdf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: divdf3.S,v 1.3 1997/04/25 00:58:48 thorpej Exp $")
+ RCSID("$NetBSD: divdf3.S,v 1.4 1999/05/02 20:17:20 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,7 +51,9 @@
ENTRY(__divdf3)
fmoved sp@(4),fp0
fdivd sp@(12),fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/divsf3.S
--- a/lib/libc/arch/m68k/gen/divsf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/divsf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: divsf3.S,v 1.3 1997/04/25 00:58:48 thorpej Exp $ */
+/* $NetBSD: divsf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)divsf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: divsf3.S,v 1.3 1997/04/25 00:58:48 thorpej Exp $")
+ RCSID("$NetBSD: divsf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,5 +51,7 @@
ENTRY(__divsf3)
fmoves sp@(4),fp0
fdivs sp@(8),fp0
+#ifndef __SVR4_ABI__
fmoves fp0,d0
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/extendsfdf2.S
--- a/lib/libc/arch/m68k/gen/extendsfdf2.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/extendsfdf2.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extendsfdf2.S,v 1.3 1997/04/25 00:58:50 thorpej Exp $ */
+/* $NetBSD: extendsfdf2.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,14 +43,16 @@
#if 0
RCSID("from: @(#)extendsfdf2.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: extendsfdf2.S,v 1.3 1997/04/25 00:58:50 thorpej Exp $")
+ RCSID("$NetBSD: extendsfdf2.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
/* (double) float */
ENTRY(__extendsfdf2)
fmoves sp@(4),fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/fabs.S
--- a/lib/libc/arch/m68k/gen/fabs.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/fabs.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fabs.S,v 1.4 1997/07/30 23:52:02 jtc Exp $ */
+/* $NetBSD: fabs.S,v 1.5 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,10 +38,15 @@
#include <machine/asm.h>
-RCSID("$NetBSD: fabs.S,v 1.4 1997/07/30 23:52:02 jtc Exp $")
+RCSID("$NetBSD: fabs.S,v 1.5 1999/05/02 20:17:21 kleink Exp $")
ENTRY(fabs)
+#ifdef __SVR4_ABI__
+ bclr #31,sp@(4)
+ fmoved sp@(4),fp0
+#else
movl sp@(4),d0
movl sp@(8),d1
bclr #31,d0
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/floatsidf.S
--- a/lib/libc/arch/m68k/gen/floatsidf.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/floatsidf.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatsidf.S,v 1.3 1997/04/25 00:58:52 thorpej Exp $ */
+/* $NetBSD: floatsidf.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,15 +43,17 @@
#if 0
RCSID("from: @(#)floatsidf.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: floatsidf.S,v 1.3 1997/04/25 00:58:52 thorpej Exp $")
+ RCSID("$NetBSD: floatsidf.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
/* (double) int */
ENTRY(__floatsidf)
fmovel sp@(4),fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/ldexp.S
--- a/lib/libc/arch/m68k/gen/ldexp.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/ldexp.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldexp.S,v 1.5 1997/10/09 20:06:18 is Exp $ */
+/* $NetBSD: ldexp.S,v 1.6 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)ldexp.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: ldexp.S,v 1.5 1997/10/09 20:06:18 is Exp $")
+ RCSID("$NetBSD: ldexp.S,v 1.6 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -54,7 +54,9 @@
ENTRY(ldexp)
fmoved sp@(4),fp0
fscalel sp@(12),fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/modf.S
--- a/lib/libc/arch/m68k/gen/modf.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/modf.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: modf.S,v 1.3 1997/04/25 00:58:55 thorpej Exp $ */
+/* $NetBSD: modf.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)modf.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: modf.S,v 1.3 1997/04/25 00:58:55 thorpej Exp $")
+ RCSID("$NetBSD: modf.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -57,7 +57,9 @@
fintrzx fp0,fp1
fmoved fp1,a0@
fsubx fp1,fp0
+#ifndef __SVR4_ABI__
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/muldf3.S
--- a/lib/libc/arch/m68k/gen/muldf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/muldf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: muldf3.S,v 1.3 1997/04/25 00:58:56 thorpej Exp $ */
+/* $NetBSD: muldf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)muldf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: muldf3.S,v 1.3 1997/04/25 00:58:56 thorpej Exp $")
+ RCSID("$NetBSD: muldf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,7 +51,9 @@
ENTRY(__muldf3)
fmoved sp@(4),fp0
fmuld sp@(12),fp0
+#ifndef __SVR4_ABI))
fmoved fp0,sp@-
movel sp@+,d0
movel sp@+,d1
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/mulsf3.S
--- a/lib/libc/arch/m68k/gen/mulsf3.S Sun May 02 20:09:29 1999 +0000
+++ b/lib/libc/arch/m68k/gen/mulsf3.S Sun May 02 20:17:20 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mulsf3.S,v 1.3 1997/04/25 00:58:57 thorpej Exp $ */
+/* $NetBSD: mulsf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)mulsf3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: mulsf3.S,v 1.3 1997/04/25 00:58:57 thorpej Exp $")
+ RCSID("$NetBSD: mulsf3.S,v 1.4 1999/05/02 20:17:21 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -51,5 +51,7 @@
ENTRY(__mulsf3)
fmoves sp@(4),fp0
fmuls sp@(8),fp0
+#ifndef __SVR4_ABI__
fmoves fp0,d0
+#endif
rts
diff -r 93f2b5db6c9c -r 402db8a231b0 lib/libc/arch/m68k/gen/negdf2.S
Home |
Main Index |
Thread Index |
Old Index