Re: [PATCH] Fix tree-vect-generic.c BIT_FIELD_REF creation (PR middle-end/52750)

2012-03-28 Thread Richard Guenther
On Wed, Mar 28, 2012 at 3:54 PM, Jakub Jelinek wrote: > Hi! > > The attached testcase shows that already for 32x signed char > vector shuffles using the index element type for computing > BIT_FIELD_REF positions is wrong - bytes 16 and above > in the vector are bits 128 and above, and if idx > has

[PATCH] Fix tree-vect-generic.c BIT_FIELD_REF creation (PR middle-end/52750)

2012-03-28 Thread Jakub Jelinek
Hi! The attached testcase shows that already for 32x signed char vector shuffles using the index element type for computing BIT_FIELD_REF positions is wrong - bytes 16 and above in the vector are bits 128 and above, and if idx has signed char type, that overflows. Fixed thusly, bootstrapped/regte