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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:c6a54d3c1476fe9f28721d75696af5723ab0d2bc

commit r17-6760-gc6a54d3c1476fe9f28721d75696af5723ab0d2bc
Author: Richard Biener <[email protected]>
Date:   Wed Nov 25 14:49:52 2026 +0100

    middle-end/129022 - mishandled QImode AVX512 mask in VIEW_CONVERT folding

    AVX512 mask vectors for two, four and eight lanes all have QImode
    and a TYPE_SIZE of 8.  This confuses the element bits computation
    in fold_view_convert_vector_encoding.  Reject such cases in
    fold_view_convert_vector_encoding, falling back to the generic
    VIEW_CONVERT handling.

            PR middle-end/129022
            * fold-const.cc (fold_view_convert_vector_encoding): Bail
            out on boolean vectors with padding.

            * gcc.dg/vect/vect-pr129022-1.c: New testcase.
            * gcc.dg/vect/vect-pr129022-2.c: Likewise.
            * gcc.target/i386/pr129022.c: Likewise.

Reply via email to