https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059
--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:2f7e5a368ca71db5e268091e6b74506de32963bd commit r13-9947-g2f7e5a368ca71db5e268091e6b74506de32963bd Author: Richard Biener <[email protected]> Date: Mon Jul 14 14:09:28 2025 +0200 tree-optimization/121059 - fixup loop mask query When we opportunistically mask an operand of a AND with an already available loop mask we need to query that set with the correct number of masks we expect. PR tree-optimization/121059 * tree-vect-stmts.cc (vectorizable_operation): Query scalar_cond_masked_set with the correct number of masks. * gcc.dg/vect/pr121059.c: New testcase. Co-Authored-By: Richard Sandiford <[email protected]> (cherry picked from commit 234f122a9be5cc2a30d2a9e94c2fc9cde1d5a64d)
