This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fold a * (a > 0 ? 1 : -1) to abs(a) and related optimizations


On Sat, 24 Jun 2017, Andrew Pinski wrote:

* if X is NaN, we may get a qNaN with the wrong sign bit. We probably don't
care much though...

Ok, I changed it to when not honoring NANs.

Note that I have no idea what guarantees we give in gcc. It is quite possible that your patch is fine without this change, I only wanted to raise the question in case someone knows.

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]