[Bug target/93112] Incorrect rounding for float to uint64 on x86 (32bit) with -fexcess-precision=standard

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 1 16:04:00 GMT 2020


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

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Wed, 1 Jan 2020, jakub at gcc dot gnu.org wrote:

> I must say I don't know if it is correct that interpret_float builds constants
> already in the excess precision (so you end up with 1.034567L), rather than
> being created in type and then converted to const_type.

Yes, that's as intended.  FLT_EVAL_METHOD applies to constants as well as 
to operations.


More information about the Gcc-bugs mailing list