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] Change swdiv evaluation order (x86), remove pass_convert_to_rsqrt


On 10/28/2009 08:37 PM, Michael Matz wrote:
transform 0.0 == sqrt(0/x) ->  rsqrt(x/0) == NaN.  Clearly something
for -fnonsense-math-optimizations, not for -funsafe.

Well, the theory probably was that rsqrt(x/0) == rsqrt(inf) == 1/sqrt(inf) == 0. The problem is that exactly because of -funsafe-math-optimizations the last step is bogus (and actually because rsqrt is computed with tables even the second one does not work).


Paolo


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