[Bug libgcc/78576] [PPC] wrong long double to long int conversion
bergner at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 29 20:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78576
--- Comment #9 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to joseph@codesourcery.com from comment #7)
> What are the actual high and low doubles in the return from powl? The
> simplest reason for the reported result here would be that powl returns a
> result very slightly less than 27 (which is fine; there is no expectation
> of powl, or any operations for IBM long double, being correctly rounded).
Using gdb, I see:
(gdb) info registers f1 f2
f1 27 (raw 0x403b000000000000)
f2 -3.0814879110195774e-33 (raw 0xb930000000000000)
More information about the Gcc-bugs
mailing list