[Bug rtl-optimization/66248] subreg truncation not hoisted from loop

sje at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 15 17:46:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66248

--- Comment #5 from Steve Ellcey <sje at gcc dot gnu.org> ---
If we did not truncate ret on each loop iteration then ret could get large
enough to overflow the maximum integer value before we truncate it at the end,
leading to undefined results.  But if we truncate ret on each loop iteration
then ret will not overflow and the result is defined.


More information about the Gcc-bugs mailing list