[PATCH] Fix shufpd operands (PR target/46880)

Uros Bizjak ubizjak@gmail.com
Tue Dec 21 22:50:00 GMT 2010


On Tue, Dec 21, 2010 at 9:52 PM, Jakub Jelinek <jakub@redhat.com> wrote:

> In these two insns, shufpd insn is used in an alternative which has
> constraint 0 on operand %2 and constraint x on operand %1, so it
> is obviously wrong to use operand %2 as source operand, because
> that's the same register as %0 and shuftpd $2, %xmm0, %xmm0
> (or any other where src == dst) is a nop).
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
>
>        PR target/46880
>        * config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
>        operand.
>
>        * gcc.target/i386/pr46880.c: New test.

OK.

Thanks,
Uros.



More information about the Gcc-patches mailing list