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

--- Comment #13 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:b960a9c83a93b58a84a7a370002990810675ac5d

commit r11-4226-gb960a9c83a93b58a84a7a370002990810675ac5d
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Oct 22 09:29:47 2020 +0200

    middle-end/97521 - fix VECTOR_CST expansion

    This fixes expansion of VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs which
    when using an integer mode are not always "mask-mode" but may
    be using an integer mode when there's no supported vector mode.

    The patch makes sure to only go the mask-mode expansion if
    the elements do not line up to cover the full integer mode
    (when they do and the mode was an actual mask-mode there's
    no actual difference in both expansions).

    2020-10-22  Richard Biener  <rguent...@suse.de>

            PR middle-end/97521
            * expr.c (expand_expr_real_1): Be more careful when
            expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.

            * gcc.target/i386/pr97521.c: New testcase.

Reply via email to