This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/78576] [PPC] wrong long double to long int conversion
- From: "bergner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Nov 2016 20:14:15 +0000
- Subject: [Bug libgcc/78576] [PPC] wrong long double to long int conversion
- Auto-submitted: auto-generated
- References: <bug-78576-4@http.gcc.gnu.org/bugzilla/>
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)