[PATCH] Fix gather expansion (PR target/59839)

Uros Bizjak ubizjak@gmail.com
Thu Jan 16 19:16:00 GMT 2014


On Thu, Jan 16, 2014 at 8:05 PM, Jakub Jelinek <jakub@redhat.com> wrote:

> As the following testcase shows, if target of a gather intrinsic
> is e.g. a MEM, we shouldn't use it as target, because it fails
> the output operand predicate.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
> ok for trunk/4.8?
>
> 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
>
>         PR target/59839
>         * config/i386/i386.c (ix86_expand_builtin): If target doesn't
>         satisfy operand 0 predicate for gathers, use a new pseudo as
>         subtarget.
>
>         * gcc.target/i386/pr59839.c: New test.

OK everywhere.

Thanks,
Uros.



More information about the Gcc-patches mailing list