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

--- Comment #5 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:46a3355c7f165661a048151ce36cf6e08a4e5d9d

commit r16-6918-g46a3355c7f165661a048151ce36cf6e08a4e5d9d
Author: Richard Biener <[email protected]>
Date:   Tue Jan 20 10:57:34 2026 +0100

    middle-end/123697 - fix .MASK_LOAD_LANES folding

    .MASK_LOAD_LANES has an aggregate (array of vectors) return value
    which is not compatible with the else value used when trying to
    fold this with all lanes inactive.  Instead use an empty CTOR if
    the else value is zero and otherwise do not simplify.

            PR middle-end/123697
            * gimple-fold.cc (gimple_fold_partial_load_store): Use an
            empty CTOR for a zero else value in .MASK_LOAD_LANES.

            * gcc.dg/vect/vect-pr123697.c: New testcase.

Reply via email to