[PATCH] Enable GCC support for AVX512_VP2INTERSECT.

Uros Bizjak ubizjak@gmail.com
Fri Jun 21 06:59:00 GMT 2019


On Thu, Jun 20, 2019 at 4:58 PM H.J. Lu <hjl.tools@gmail.com> wrote:

> > > > > >> > > +/* Register pair.  */
> > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */
> > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI P4QI */
> > > > > >> > >
> > > > > >> > > I think
> > > > > >> > >
> > > > > >> > > INT_MODE (P2QI, 16);
> > > > > >> > > INT_MODE (P2HI, 32);
> > > > > >> > >
> > > > > >> > > with the above subreg approach should work.
> > Yes, it works.
> >
> > But i didn't figure out how did pass_reload correctly handle such subreg,
> > do you have suggestions such as "which function i can dig into first" or
> > "which piece of codes handle subreg"?
>
> You need to define REGMODE_NATURAL_SIZE.

It looks to me that this define needs to be updated for vector modes.
We can't access all parts of xmm regs in word_mode.

Uros.



More information about the Gcc-patches mailing list