[Bug target/93112] Incorrect rounding for float to uint64 on x86 (32bit) with -fexcess-precision=standard
stefan.bruens@rwth-aachen.de
gcc-bugzilla@gcc.gnu.org
Wed Jan 1 14:17:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93112
--- Comment #2 from Stefan Brüns <stefan.bruens@rwth-aachen.de> ---
I agree the numerical error introduced by truncating/casting is somewhat
expected.
The strange part is for ~every other architecture, 1.034567 apparently gets
rounded up for some immediate value/type (double?), while for ix86 it gets
rounded down.
More information about the Gcc-bugs
mailing list