Re: Fix simplify_shift_const_1 handling of vector shifts

2016-11-15 Thread Segher Boessenkool
Hi Richard, On Tue, Nov 15, 2016 at 10:49:26AM +, Richard Sandiford wrote: > simplify_shift_const_1 handles both shifts of scalars by scalars > and shifts of vectors by scalars. For vectors this means that > each element is shifted by the same amount. > > However: > > (a) the two cases were

Fix simplify_shift_const_1 handling of vector shifts

2016-11-15 Thread Richard Sandiford
[ This patch is part of the SVE series posted here: https://gcc.gnu.org/ml/gcc/2016-11/msg00030.html ] simplify_shift_const_1 handles both shifts of scalars by scalars and shifts of vectors by scalars. For vectors this means that each element is shifted by the same amount. However: (a) the tw