Re: [PATCH] Add vec_extract{v32qiv16qi,v16hiv8hi,v8siv4si,v4div2di,v8sfv4sf,v4dfv2df}

2019-01-07 Thread Uros Bizjak
On Sun, Jan 6, 2019 at 11:33 AM Jakub Jelinek wrote: > > Hi! > > Looking at the output of builtin-convertvector-1.c (f4), this patch changes > the generated code: > vcvttpd2dqy (%rdi), %xmm0 > - vmovdqa %xmm0, %xmm0 > vmovaps %xmm0, (%rsi) > - vzeroupper > r

[PATCH] Add vec_extract{v32qiv16qi,v16hiv8hi,v8siv4si,v4div2di,v8sfv4sf,v4dfv2df}

2019-01-06 Thread Jakub Jelinek
Hi! Looking at the output of builtin-convertvector-1.c (f4), this patch changes the generated code: vcvttpd2dqy (%rdi), %xmm0 - vmovdqa %xmm0, %xmm0 vmovaps %xmm0, (%rsi) - vzeroupper ret The problem is that without vec_extract patterns to extract 128-bit ve