Re: [PATCH] Improve *avx_vperm_broadcast_*

2016-05-31 Thread Jakub Jelinek
On Tue, May 31, 2016 at 06:54:14AM -0700, H.J. Lu wrote: > On Mon, May 23, 2016 at 10:15 AM, Jakub Jelinek wrote: > > Hi! > > > > The vbroadcastss and vpermilps insns are already in AVX512F & AVX512VL, > > so can be used with v instead of x, the splitter case where we for AVX > > emit vpermilps pl

Re: [PATCH] Improve *avx_vperm_broadcast_*

2016-05-31 Thread H.J. Lu
On Mon, May 23, 2016 at 10:15 AM, Jakub Jelinek wrote: > Hi! > > The vbroadcastss and vpermilps insns are already in AVX512F & AVX512VL, > so can be used with v instead of x, the splitter case where we for AVX > emit vpermilps plus vpermf128 is more problematic, because the latter > insn isn't ava

Re: [PATCH] Improve *avx_vperm_broadcast_*

2016-05-26 Thread Kirill Yukhin
Hi Jakub, On 23 May 19:15, Jakub Jelinek wrote: > Hi! > > The vbroadcastss and vpermilps insns are already in AVX512F & AVX512VL, > so can be used with v instead of x, the splitter case where we for AVX > emit vpermilps plus vpermf128 is more problematic, because the latter > insn isn't available

[PATCH] Improve *avx_vperm_broadcast_*

2016-05-23 Thread Jakub Jelinek
Hi! The vbroadcastss and vpermilps insns are already in AVX512F & AVX512VL, so can be used with v instead of x, the splitter case where we for AVX emit vpermilps plus vpermf128 is more problematic, because the latter insn isn't available in EVEX. But, we can get the same effect with vshuff32x4 wh