https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111614
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:8e8599fc8079cdc2a9ef934c765613e2f0a4cdf9 commit r13-8042-g8e8599fc8079cdc2a9ef934c765613e2f0a4cdf9 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)