https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105394
--- Comment #14 from CVS 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:e229f9b8f5d060056883ddb379b191c451e20139 commit r12-8341-ge229f9b8f5d060056883ddb379b191c451e20139 Author: Richard Biener <rguent...@suse.de> Date: Fri Apr 29 11:54:45 2022 +0200 tree-optimization/105394 - vector lowering of compares The following fixes missing handling of non-integer mode but masked (SVE or MVE) compares in vector lowering by using the appropriate mask element width to extract the components and adjust the index. 2022-04-29 Richard Biener <rguent...@suse.de> PR tree-optimization/105394 * tree-vect-generic.cc (expand_vector_condition): Adjust comp_width for non-integer mode masks as well. (cherry picked from commit dfae0c5a29f336cdab234b28999f9ba9dc20a4d0)