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] Fix wrong instruction vpcmpeqd generation


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


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