Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-06 Thread Uros Bizjak
On Thu, Aug 6, 2015 at 9:27 AM, Uros Bizjak wrote: >> Is it ok to backport the patch to gcc-5-branch? > > A minor attribute fix is needed, please update type attribute of > *vec_concatv2df for added alternatives, also for mainline. Fixed in mainline with the following patch: 2015-08-06 Uros Bi

Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-06 Thread Uros Bizjak
On Wed, Aug 5, 2015 at 10:07 AM, Kirill Yukhin wrote: > Hello, > > Is it ok to backport the patch to gcc-5-branch? A minor attribute fix is needed, please update type attribute of *vec_concatv2df for added alternatives, also for mainline. Otherwise, the patch looks safe, so OK for backport after

Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-05 Thread Kirill Yukhin
Hello, Is it ok to backport the patch to gcc-5-branch? -- Thanks, K > On 04 Aug 15:31, Kirill Yukhin wrote: > > commit 1055739cb51648794a01afd85f59efadd14378ed > Author: Kirill Yukhin > Date: Mon Aug 3 15:21:06 2015 +0300 > > Fix vec_concatv2df and vec_dupv2df to block wrongly enabled A

Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-04 Thread Kirill Yukhin
On 04 Aug 15:31, Kirill Yukhin wrote: > On 04 Aug 14:10, Uros Bizjak wrote: > > On Tue, Aug 4, 2015 at 1:47 PM, Kirill Yukhin > > wrote: > > > Hello, > > > - (set_attr "prefix_data16" "*,*,*,1,*,*,*,*") > > > - (set_attr "prefix" "orig,vex,maybe_vex,orig,vex,maybe_vex,orig,orig") > > > - (s

Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-04 Thread Kirill Yukhin
On 04 Aug 14:10, Uros Bizjak wrote: > On Tue, Aug 4, 2015 at 1:47 PM, Kirill Yukhin wrote: > > Hello, > > - (set_attr "prefix_data16" "*,*,*,1,*,*,*,*") > > - (set_attr "prefix" "orig,vex,maybe_vex,orig,vex,maybe_vex,orig,orig") > > - (set_attr "mode" "V2DF,V2DF,DF,V1DF,V1DF,DF,V4SF,V2SF")])

Re: [PATCH, i386] Disable AVX-512VL insns for scalar mode operands on -march=knl.

2015-08-04 Thread Uros Bizjak
On Tue, Aug 4, 2015 at 1:47 PM, Kirill Yukhin wrote: > Hello, > > For vec_dup and vec_concat patterns (of v2df mode) second operand > is of scalar mode, so `ix86_hard_regno_mode_ok’ didn’t block EVEX registers, > of non-512b modes (when AVX-512VL is turned off). > This turns into 128/256b xmm[>15]