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

--- Comment #20 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Sandiford
<rsand...@gcc.gnu.org>:

https://gcc.gnu.org/g:2408b93a10c9c6cb210bc2a93d39ce6d56144ca3

commit r9-8253-g2408b93a10c9c6cb210bc2a93d39ce6d56144ca3
Author: Richard Sandiford <richard.sandif...@arm.com>
Date:   Thu Dec 5 14:20:38 2019 +0000

    Check for bitwise identity when encoding VECTOR_CSTs [PR92768]

    This PR shows that we weren't checking for bitwise-identical values
    when trying to encode a VECTOR_CST, so -0.0 was treated the same as
    0.0 for -fno-signed-zeros.  The patch adds a new OEP flag to select
    that behaviour.

    2020-02-18  Richard Sandiford  <richard.sandif...@arm.com>

    gcc/
        Backport from mainline
        2019-12-05  Richard Sandiford  <richard.sandif...@arm.com>

        PR middle-end/92768
        * tree-core.h (OEP_BITWISE): New flag.
        * fold-const.c (operand_compare::operand_equal_p): Handle it.
        * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.

    gcc/testsuite/
        PR middle-end/92768
        * gcc.dg/pr92768.c: New test.

Reply via email to