diff options
author | Roland McGrath <roland@gnu.org> | 2004-04-29 20:02:34 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-04-29 20:02:34 +0000 |
commit | e0067d3006b3fb28c188564e50ba354558e0b67f (patch) | |
tree | 9321fa9afbd8f8832e24f7832eaa0b5da6b887b5 /sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c | |
parent | 8c70d1c47bce9fa876c6fee83e9a2e21c5232666 (diff) | |
download | glibc-e0067d3006b3fb28c188564e50ba354558e0b67f.tar glibc-e0067d3006b3fb28c188564e50ba354558e0b67f.tar.gz glibc-e0067d3006b3fb28c188564e50ba354558e0b67f.tar.bz2 glibc-e0067d3006b3fb28c188564e50ba354558e0b67f.zip |
[BZ #139]
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>.
Diffstat (limited to 'sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c')
-rw-r--r-- | sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c b/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c index f0a37eb833..cf8aba73c6 100644 --- a/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c +++ b/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c @@ -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; |