https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57245
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a84b9d5373c7e67fd0ab2a412c22162cdf969c91 commit r12-4764-ga84b9d5373c7e67fd0ab2a412c22162cdf969c91 Author: Richard Biener <rguent...@suse.de> Date: Wed Oct 27 14:27:40 2021 +0200 middle-end/57245 - honor -frounding-math in real truncation The following honors -frounding-math when converting a FP constant to another FP type. 2021-10-27 Richard Biener <rguent...@suse.de> PR middle-end/57245 * fold-const.c (fold_convert_const_real_from_real): Honor -frounding-math if the conversion is not exact. * simplify-rtx.c (simplify_const_unary_operation): Do not simplify FLOAT_TRUNCATE with sign dependent rounding. * gcc.dg/torture/fp-double-convert-float-1.c: New testcase.