]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #139]
authorRoland McGrath <roland@gnu.org>
Thu, 29 Apr 2004 20:02:34 +0000 (20:02 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 29 Apr 2004 20:02:34 +0000 (20:02 +0000)
2004-04-29  Jakub Jelinek  <jakub@redhat.com>
* sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
for single precision register, add it to __asm clobbers [BZ #139].
* sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
for single precision register, add it to __asm clobbers.
* sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
instead of fqtoi in QP_HANDLE_EXCEPTIONS.
* sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
Reported by M. H. VanLeeuwen <vanl@megsinet.net>.

sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c
sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c
sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c
sysdeps/sparc/sparc64/soft-fp/qp_qtox.c

index f0a37eb833a0fd06a2fdefe50fa19c3de6a4bc10..cf8aba73c6c87eb56facf918d60e92c5cc730c79 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return (int)(*a)
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
@@ -38,9 +38,9 @@ int _Qp_qtoi(const long double *a)
        __asm (
 "      ldd [%1], %%f52\n"
 "      ldd [%1+8], %%f54\n"
-"      fqtoi %%f52, %%f60\n"
-"      st %%f60, [%0]\n"
-"      " : : "r" (&rx), "r" (a) : QP_CLOBBER);
+"      fqtoi %%f52, %%f31\n"
+"      st %%f31, [%0]\n"
+"      " : : "r" (&rx), "r" (a) : QP_CLOBBER, "f31");
        r = rx);
 
   return r;
index 3c8e51409db172a2336f7a20c6be3aac7e6cea80..abee50b06aa218f6d0af9ca3a76e6bba21796302 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return (unsigned int)(*a)
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
@@ -38,9 +38,9 @@ unsigned int _Qp_qtoui(const long double *a)
        __asm (
 "      ldd [%1], %%f52\n"
 "      ldd [%1+8], %%f54\n"
-"      fqtoi %%f52, %%f60\n"
-"      st %%f60, [%0]\n"
-"      " : : "r" (&rx), "r" (a) : QP_CLOBBER);
+"      fqtoi %%f52, %%f31\n"
+"      st %%f31, [%0]\n"
+"      " : : "r" (&rx), "r" (a) : QP_CLOBBER, "f31");
        r = rx);
 
   return r;
index d1f1dd86db959d783446986a16f10247337daa66..87c8478880d9f39a230d62da7bdd88e6969842af 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return (unsigned long)(*a)
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
@@ -38,7 +38,7 @@ unsigned long _Qp_qtoux(const long double *a)
        __asm (
 "      ldd [%1], %%f52\n"
 "      ldd [%1+8], %%f54\n"
-"      fqtoi %%f52, %%f60\n"
+"      fqtox %%f52, %%f60\n"
 "      std %%f60, [%0]\n"
 "      " : : "r" (&rx), "r" (a) : QP_CLOBBER);
        r = rx);
index 9f0b77e7c43c1092a36eb99c8c915f5c5629d1db..35481196eebd4f7a68792725ad7e36f469aff4f2 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return (long)(*a)
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
@@ -38,7 +38,7 @@ long _Qp_qtox(const long double *a)
        __asm (
 "      ldd [%1], %%f52\n"
 "      ldd [%1+8], %%f54\n"
-"      fqtoi %%f52, %%f60\n"
+"      fqtox %%f52, %%f60\n"
 "      std %%f60, [%0]\n"
 "      " : : "r" (&rx), "r" (a) : QP_CLOBBER);
        r = rx);