Re: [PATCH] Add mulv32qi3 support

2011-10-12 Thread Richard Henderson
On 10/12/2011 09:24 AM, Jakub Jelinek wrote: > BTW, I wonder if vector multiply expansion when one argument is VECTOR_CST > with all elements the same shouldn't use something similar to what expand_mult > does, not sure if in the generic code or at least in the backends. > Testing the costs will be

[PATCH] Add mulv32qi3 support

2011-10-12 Thread Jakub Jelinek
Hi! On long long a[1024], c[1024]; char b[1024]; void foo (void) { int i; for (i = 0; i < 1024; i++) b[i] = a[i] + 3 * c[i]; } I've noticed that while i?86 backend supports mulv16qi3, it doesn't support mulv32qi3 even with AVX2. The following patch implements that similarly how mulv16qi3