[Bug c++/71753] Clamp function does not work with O3 optimization

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 4 10:04:00 GMT 2016


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Comment on attachment 38830
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38830
Code that reproduces the issue

value + 0x7FFFFF00

Will overflow most of the time.


More information about the Gcc-bugs mailing list