https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Segher Boessenkool from comment #8) > So we should use the current rounding mode for any float_trunc? So we can > use > float store instructions for it only with some fast-math option? No, the default is the following: This is round-to-zero for all floating point to integer conversions, and round-to-nearest for all other arithmetic truncations. https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Optimize-Options.html#index-frounding-math