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

Uros Bizjak ubizjak@gmail.com
Mon Aug 9 15:27:26 GMT 2021


On Mon, Aug 9, 2021 at 5:24 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Sun, Aug 8, 2021 at 1:23 PM Uros Bizjak <ubizjak@gmail.com> wrote:
> >
> > On Sat, Aug 7, 2021 at 4:41 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> > >
> > > Update vector_all_ones_operand to return true for const all 1s float
> > > vectors.
> > >
> > > gcc/
> > >
> > >         PR target/101804
> > >         * config/i386/predicates.md (vector_all_ones_operand): Return
> > >         true for const all 1s float vectors.
> > >
> > > gcc/testsuite/
> > >
> > >         PR target/101804
> > >         * gcc.target/i386/avx2-gather-2.c: Pass -march=skylake instead
> > >         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?

Please also add a new constraint, BC is intended for integer values.

Uros.


More information about the Gcc-patches mailing list