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

--- Comment #5 from Sanjay Patel <spatel at rotateright dot com> ---
(In reply to Mikhail Maltsev from comment #3)
> So, compile-time result is more precise. BTW, what does the disassembly look
> like?

In the -O0 case, it looks like all of the math is handled in:
     call    ___ieee_divdc3

In the -O1 case, the result is precomputed and loaded from constant pool:
LC1:
        .long   4250898262
        .long   -1082062004


Is Wolfram Alpha considered the authoritative answer? Or is there some IEEE
reference implementation that we can consult for this kind of question?

Reply via email to