https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049
--- Comment #16 from GCC 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:bc5570f7ef796fa7f5ab89b34ed9de2be5299f0e commit r16-2299-gbc5570f7ef796fa7f5ab89b34ed9de2be5299f0e Author: Richard Biener <rguent...@suse.de> Date: Wed Jul 16 15:07:58 2025 +0200 tree-optimization/121049 - avoid loop masking with even/odd reduction The following disables loop masking when we are using an even/odd widening operation in a reduction because the loop mask then aligns to the wrong elements. PR tree-optimization/121049 * internal-fn.h (widening_evenodd_fn_p): Declare. * internal-fn.cc (widening_evenodd_fn_p): New function. * tree-vect-stmts.cc (vectorizable_conversion): When using an even/odd widening function disable loop masking. * gcc.dg/vect/pr121049.c: New testcase.