aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2012-04-16 11:03:41 +0200
committerMarek Polacek <polacek@redhat.com>2012-04-16 11:03:41 +0200
commit751728a1f10cdaf35c499c1d508a3a28ccfddc92 (patch)
treeb15405f14cd7fdfd90374df867eb0b753c5866e8
parent34a27407f49e61b1be2b2437eb7748a777f359aa (diff)
downloadglibc-751728a1f10cdaf35c499c1d508a3a28ccfddc92.zip
glibc-751728a1f10cdaf35c499c1d508a3a28ccfddc92.tar.gz
glibc-751728a1f10cdaf35c499c1d508a3a28ccfddc92.tar.bz2
Reverse arguments of fdivp in i386 code.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/fpu/bits/fenv.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 77e60af..95c737f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-16 Marek Polacek <polacek@redhat.com>
+
+ * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
+ operands of fdivp instruction.
+
2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
* elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
diff --git a/sysdeps/i386/fpu/bits/fenv.h b/sysdeps/i386/fpu/bits/fenv.h
index 460368a..e71ceb7 100644
--- a/sysdeps/i386/fpu/bits/fenv.h
+++ b/sysdeps/i386/fpu/bits/fenv.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -121,7 +121,7 @@ __NTH (feraiseexcept (int __excepts))
# ifdef __SSE_MATH__
__asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g));
# else
- __asm__ __volatile__ ("fdivp %%st(1), %%st; fwait"
+ __asm__ __volatile__ ("fdivp %%st, %%st(1); fwait"
: "=t" (__f) : "0" (__f), "u" (__g) : "st(1)");
# endif
(void) &__f;