Re: [PATCH v2] x86: Optimize load of const all 1s float vectors

2021-08-09 Thread Uros Bizjak via Gcc-patches
On Mon, Aug 9, 2021 at 5:24 PM H.J. Lu wrote: > > On Sun, Aug 8, 2021 at 1:23 PM Uros Bizjak wrote: > > > > On Sat, Aug 7, 2021 at 4:41 PM H.J. Lu wrote: > > > > > > Update vector_all_ones_operand to return true for const all 1s float > > > vectors. > > > > > > gcc/ > > > > > > PR target

[PATCH v2] x86: Optimize load of const all 1s float vectors

2021-08-09 Thread H.J. Lu via Gcc-patches
of "-mavx2 -mtune=skylake". Scan vpcmpeqd. > > No, vector_all_ones_operand is intended to be integer minus-one. Use > float_vector_all_ones_operand in a specific place, where it is needed. > Like this? -- H.J. From 017dee0c9ee946e16fbb1b938c1dd62ac0f95b09 Mon Sep 17 00:0