https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121744
--- Comment #2 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:20cd438f2f49ed4816cba9ecc558ee3377b342ba commit r16-3491-g20cd438f2f49ed4816cba9ecc558ee3377b342ba Author: Richard Biener <[email protected]> Date: Mon Sep 1 13:29:23 2025 +0200 tree-optimization/121744 - handle CST << var in shift pattern recog We currently do not handle promotion/demotion of 'var' when the left operand of a variable shift is constant. There's no good reason why, so the following fixes this omission. PR tree-optimization/121744 * tree-vect-patterns.cc (vect_recog_vector_vector_shift_pattern): Allow constant left operand. * gcc.dg/vect/pr121744-1.c: New testcase.
