This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi!
The extra checks I've added to binutils prevent this from assembling
(before it has been silently using %f29 instead of %f60).
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].
--- libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c.jj 2001-07-06 06:56:05.000000000 +0200
+++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c 2004-04-29 09:22:20.847934043 +0200
@@ -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;
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |