tree-optimization/105394 - vector lowering of compares
authorRichard Biener <rguenther@suse.de>
Fri, 29 Apr 2022 09:54:45 +0000 (11:54 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 May 2022 09:13:12 +0000 (11:13 +0200)
commite229f9b8f5d060056883ddb379b191c451e20139
tree506edb069f3c6f85ab4ce2c6264689521ede0889
parentd71b9208f355d1b6d60eb0c43b7e41285183005b
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  <rguenther@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)
gcc/tree-vect-generic.cc