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.shal...@intel.com>
gcc/
        * config/i386/i386.c (standard_sse_constant_opcode):
        Fix wrong form for vpcmpeqd instruction

Attachment: 0008-Wrong-instruction-vpcmpeqd-generation.patch
Description: 0008-Wrong-instruction-vpcmpeqd-generation.patch

Reply via email to