On Fri, Sep 18, 2020 at 01:39:16PM +0200, Richard Biener wrote: > This corrects the mask for creation of x << s | x >> (-x & mask) > from a rotate x <<r s to use the precision of x. > > Bootstrap / regtest running on x86_64-unknown-linux-gnu. > > 2020-09-18 Richard Biener <rguent...@suse.de> > > PR tree-optimization/97081 > * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the > precision of the shifted operand to determine the mask. > > * gcc.dg/vect/pr97081.c: New testcase.
LGTM, thanks. Please make sure to backport it down up to 8.x. Jakub