This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386] Fix wrong instruction vpcmpeqd generation
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: "Shalnov, Sergey" <sergey dot shalnov at intel dot com>
- Cc: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>, "Koval, Julia" <julia dot koval at intel dot com>, "Senkevich, Andrew" <andrew dot senkevich at intel dot com>, "Peryt, Sebastian" <sebastian dot peryt at intel dot com>, "Ivchenko, Alexander" <alexander dot ivchenko at intel dot com>, 'Uros Bizjak' <ubizjak at gmail dot com>
- Date: Fri, 1 Dec 2017 09:25:23 +0300
- Subject: Re: [PATCH, i386] Fix wrong instruction vpcmpeqd generation
- Authentication-results: sourceware.org; auth=none
- References: <71475DE127B5E94A8E189586234C088822AE648F@irsmsx105.ger.corp.intel.com>
Hello Sergey,
On 24 Nov 15:44, Shalnov, Sergey wrote:
> Hi,
> I found wrong vpcmpeqd instruction form generated in case of
> "-march=skylake-avx512 -mprefer-vector-width=128" options set
>
> The compiler emits following error at compile stage:
> Error: invalid register operand for `vpcmpeqd'
>
> Because following was generated:
> vpcmpeqd %xmm16, %xmm16, %xmm16
>
> In this form the instruction can use zmm0-xmm15 registers only.
>
>
> 2017-11-24 Sergey Shalnov <Sergey.Shalnov@intel.com>
> gcc/
> * config/i386/i386.c (standard_sse_constant_opcode):
> Fix wrong form for vpcmpeqd instruction
Patch is OK. I've checked it into main trunk.
--
Thanks, K