https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111614
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:e4b5aca4433bd1c6de4ea2585700770bba8eb0d7 commit r12-10013-ge4b5aca4433bd1c6de4ea2585700770bba8eb0d7 Author: Richard Biener <rguent...@suse.de> Date: Thu Sep 28 09:41:30 2023 +0200 tree-optimization/111614 - missing convert in undistribute_bitref_for_vector The following adjusts a flawed guard for converting the first vector of the sum we create in undistribute_bitref_for_vector. PR tree-optimization/111614 * tree-ssa-reassoc.cc (undistribute_bitref_for_vector): Properly convert the first vector when required. * gcc.dg/torture/pr111614.c: New testcase. (cherry picked from commit 88d79b9b03eccf39921d13c2cbd1acc50aeda126)