summary refs log tree commit diff
path: root/sysdeps/libm-i387/i686/s_fdimf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/i686/s_fdimf.S')
-rw-r--r--sysdeps/libm-i387/i686/s_fdimf.S7
1 files changed, 4 insertions, 3 deletions
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)