This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH], Use VMRGEW on PowerPC power8/power9 to construct V4SFmode
On Mon, Sep 19, 2016 at 06:51:42PM -0400, Michael Meissner wrote:
> > > However ISA 2.07 (i.e. power8) added the VMRGEW instruction, which can do this
> > > more simply:
> > >
> > > xxpermdi 34,1,2,0
> > > xxpermdi 32,3,4,0
> > > xvcvdpsp 34,34
> > > xvcvdpsp 32,32
> > > vmrgew 2,2,0
> >
> > This results in {a,c,b,d} instead?
>
> Yes.
[ snip ]
My question was if you typoed/pastoed/thinkoed it here and you meant
xxpermdi 34,1,3,0
xxpermdi 32,2,4,0
xvcvdpsp 34,34
xvcvdpsp 32,32
vmrgew 2,2,0
which a) works, and b) seems to be what the code generates :-)
Segher