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

--- Comment #6 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:81342e95827f77c0917dd7a9fd54ac9729439c8e

commit r12-4767-g81342e95827f77c0917dd7a9fd54ac9729439c8e
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Oct 28 11:38:32 2021 +0200

    middle-end/84407 - honor -frounding-math for int to float conversion

    This makes us honor -frounding-math for integer to float conversions
    and avoid constant folding when such conversion is not exact.

    2021-10-28  Richard Biener  <rguent...@suse.de>

            PR middle-end/84407
            * fold-const.c (fold_convert_const): Avoid int to float
            constant folding with -frounding-math and inexact result.
            * simplify-rtx.c (simplify_const_unary_operation): Likewise
            for both float and unsigned_float.

            * gcc.dg/torture/fp-uint64-convert-double-1.c: New testcase.
            * gcc.dg/torture/fp-uint64-convert-double-2.c: Likewise.

Reply via email to