This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386]: Implement AVX2 all-ones load using vpcmpeqd insn


On Thu, Sep 8, 2011 at 8:26 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> 2011-09-08 ?Uros Bizjak ?<ubizjak@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 ?<ubizjak@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]