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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<[email protected]>:

https://gcc.gnu.org/g:8f99f9e6ccec167a5ba67dcc08e6c14948595b82

commit r9-8475-g8f99f9e6ccec167a5ba67dcc08e6c14948595b82
Author: Jakub Jelinek <[email protected]>
Date:   Tue Mar 31 11:06:43 2020 +0200

    fold-const: Fix division folding with vector operands [PR94412]

    The following testcase is miscompiled since 4.9, we treat unsigned
    vector types as if they were signed and "optimize" negations across it.

    2020-03-31  Marc Glisse  <[email protected]>
                Jakub Jelinek  <[email protected]>

            PR middle-end/94412
            * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
            ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.

            * gcc.c-torture/execute/pr94412.c: New test.

    Co-authored-by: Marc Glisse <[email protected]>

Reply via email to