This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug soft-fp/7006] Bad left shift in _FP_FRAC_SRS_2 macro in soft-fp/op-2.h on SH-4
- From: "rth at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 06 Mar 2012 22:51:34 +0000
- Subject: [Bug soft-fp/7006] Bad left shift in _FP_FRAC_SRS_2 macro in soft-fp/op-2.h on SH-4
- Auto-submitted: auto-generated
- References: <bug-7006-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=7006
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu.org
--- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-06 22:51:34 UTC ---
In addition, the "sticky bit term" is
(__builtin_constant_p(N) && (N) == 1 \
? X##_f0 & 1 \
: (X##_f0 << (_FP_W_TYPE_SIZE - (N))) != 0));
which also must be zero for a zero shift.
The same pattern occurs in the _FP_FRAC_SRST_* macros.
All that said, when do we *ever* call the SRS macros
with a zero shift count? Perhaps my poor grepping
skills, but all I see is _FP_WFRACBITS_##fs and
2*wfracbits, where wfracbits is _FP_WFRACBITS...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.