about summary refs log tree commit diff
path: root/sysdeps/libm-i387
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387')
-rw-r--r--sysdeps/libm-i387/i686/s_fdim.S7
-rw-r--r--sysdeps/libm-i387/i686/s_fdimf.S7
-rw-r--r--sysdeps/libm-i387/i686/s_fdiml.S7
-rw-r--r--sysdeps/libm-i387/i686/s_fmin.S4
-rw-r--r--sysdeps/libm-i387/i686/s_fminf.S4
-rw-r--r--sysdeps/libm-i387/i686/s_fminl.S4
6 files changed, 18 insertions, 15 deletions
diff --git a/sysdeps/libm-i387/i686/s_fdim.S b/sysdeps/libm-i387/i686/s_fdim.S
index 1ecae61aa9..3f9f61b57d 100644
--- a/sysdeps/libm-i387/i686/s_fdim.S
+++ b/sysdeps/libm-i387/i686/s_fdim.S
@@ -1,5 +1,5 @@
 /* Compute positive difference.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -30,11 +30,12 @@ ENTRY(__fdim)
 
 	fsubp	%st(1), %st
 	fldz
-	fcmovnb	%st(1), %st
+	fcomi	%st(1), %st
+	fcmovb	%st(1), %st
 	jmp	2f
 
 1:	fucomi	%st(0), %st
-	fcmovu	%st, %st(1)
+	fcmovnu	%st(1), %st
 2:	fstp	%st(1)
 	ret
 END(__fdim)
diff --git a/sysdeps/libm-i387/i686/s_fdimf.S b/sysdeps/libm-i387/i686/s_fdimf.S
index 0d2ef3cc1a..8b5cec6a3b 100644
--- a/sysdeps/libm-i387/i686/s_fdimf.S
+++ b/sysdeps/libm-i387/i686/s_fdimf.S
@@ -1,5 +1,5 @@
 /* Compute positive difference.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -30,11 +30,12 @@ ENTRY(__fdimf)
 
 	fsubp	%st(1), %st
 	fldz
-	fcmovnb	%st(1), %st
+	fcomi	%st(1), %st
+	fcmovb	%st(1), %st
 	jmp	2f
 
 1:	fucomi	%st(0), %st
-	fcmovu	%st, %st(1)
+	fcmovnu	%st(1), %st
 2:	fstp	%st(1)
 	ret
 END(__fdimf)
diff --git a/sysdeps/libm-i387/i686/s_fdiml.S b/sysdeps/libm-i387/i686/s_fdiml.S
index 94510df756..e9f0535a3a 100644
--- a/sysdeps/libm-i387/i686/s_fdiml.S
+++ b/sysdeps/libm-i387/i686/s_fdiml.S
@@ -1,5 +1,5 @@
 /* Compute positive difference.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -30,11 +30,12 @@ ENTRY(__fdiml)
 
 	fsubp	%st(1), %st
 	fldz
-	fcmovnb	%st(1), %st
+	fcomi	%st(1), %st
+	fcmovb	%st(1), %st
 	jmp	2f
 
 1:	fucomi	%st(0), %st
-	fcmovu	%st, %st(1)
+	fcmovnu	%st(1), %st
 2:	fstp	%st(1)
 	ret
 END(__fdiml)
diff --git a/sysdeps/libm-i387/i686/s_fmin.S b/sysdeps/libm-i387/i686/s_fmin.S
index 9df029996d..383e9579f6 100644
--- a/sysdeps/libm-i387/i686/s_fmin.S
+++ b/sysdeps/libm-i387/i686/s_fmin.S
@@ -1,5 +1,5 @@
 /* Compute minimum of two numbers, regarding NaN as missing argument.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -29,7 +29,7 @@ ENTRY(__fmin)
 	fcmovu	%st(1), %st	// now %st contains y if not NaN, x otherwise
 
 	fucomi	%st(1), %st
-	fcmovb	%st(1), %st
+	fcmovnb	%st(1), %st
 
 	fstp	%st(1)
 
diff --git a/sysdeps/libm-i387/i686/s_fminf.S b/sysdeps/libm-i387/i686/s_fminf.S
index a1d1497c15..f3dae00377 100644
--- a/sysdeps/libm-i387/i686/s_fminf.S
+++ b/sysdeps/libm-i387/i686/s_fminf.S
@@ -1,5 +1,5 @@
 /* Compute minimum of two numbers, regarding NaN as missing argument.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -29,7 +29,7 @@ ENTRY(__fminf)
 	fcmovu	%st(1), %st	// now %st contains y if not NaN, x otherwise
 
 	fucomi	%st(1), %st
-	fcmovb	%st(1), %st
+	fcmovnb	%st(1), %st
 
 	fstp	%st(1)
 
diff --git a/sysdeps/libm-i387/i686/s_fminl.S b/sysdeps/libm-i387/i686/s_fminl.S
index 089be40bd4..f125531112 100644
--- a/sysdeps/libm-i387/i686/s_fminl.S
+++ b/sysdeps/libm-i387/i686/s_fminl.S
@@ -1,5 +1,5 @@
 /* Compute minimum of two numbers, regarding NaN as missing argument.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -29,7 +29,7 @@ ENTRY(__fminl)
 	fcmovu	%st(1), %st	// now %st contains y if not NaN, x otherwise
 
 	fucomi	%st(1), %st
-	fcmovb	%st(1), %st
+	fcmovnb	%st(1), %st
 
 	fstp	%st(1)