From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>,
Dan Kegel <dank@kegel.com>, "M.H.VanLeeuwen" <vanl@megsinet.net>
Subject: [PATCH] Fix [BZ #139]
Date: Thu, 29 Apr 2004 07:38:00 -0000 [thread overview]
Message-ID: <20040429052647.GQ5191@sunsite.ms.mff.cuni.cz> (raw)
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
next reply other threads:[~2004-04-29 7:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-29 7:38 Jakub Jelinek [this message]
[not found] ` <4090FF37.11B1A8A1@megsinet.net>
2004-04-29 17:34 ` [PATCH] Fix [BZ #139] (followup) Jakub Jelinek
2004-04-29 20:02 ` Roland McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040429052647.GQ5191@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=dank@kegel.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
--cc=vanl@megsinet.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).