This is the mail archive of the gcc-bugs@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]

[Bug libgcc/78576] [PPC] wrong long double to long int conversion


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)

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