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>
Tue, 3 May 2022 07:45:29 +0000 (09:45 +0200)
commitdfae0c5a29f336cdab234b28999f9ba9dc20a4d0
tree30bb68a006f76d568ab2629ae021a5eece84574a
parent941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32
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.
gcc/tree-vect-generic.cc