[Bug soft-fp/7006] Bad left shift in _FP_FRAC_SRS_2 macro in soft-fp/op-2.h on SH-4
rth at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Mar 6 22:52:00 GMT 2012
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.
More information about the Glibc-bugs
mailing list