On Thu, Sep 8, 2011 at 8:26 PM, Uros Bizjak <ubiz...@gmail.com> wrote:
> Hello!
>
> 2011-09-08  Uros Bizjak  <ubiz...@gmail.com>
>
>        * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
>        (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
>
> testsuite/ChangeLog:
>
> 2011-09-08  Uros Bizjak  <ubiz...@gmail.com>
>
>        * gcc.target/i386/all_one_m256i.c: New test.
>
> Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

The sse_constant_opcode_p part of the patch should in fact read:

    case 2:
      if (TARGET_AVX)
        return "vpcmpeqd\t%0, %0, %0";
      else
        return "pcmpeqd\t%0>

Uros.

Reply via email to