On Wed, Nov 29, 2017 at 1:10 PM, Uros Bizjak <ubiz...@gmail.com> wrote: > On Wed, Nov 29, 2017 at 12:05 PM, Shalnov, Sergey > <sergey.shal...@intel.com> wrote: >> Hi, >> I found wrong MODE_XI used in movdi_internal that cause zmm >> Generation with "-march=skylake-avx512 -mprefer-vector-width=128" >> options set. This patch fixes the mode and register type but keep using >> AVX512 instruction set. > > IMO, a beter solution is to introduce ext_rex_sse_reg_operand and use > it in place of existing ext_sse_reg_operand predicate. This is XImode > move.
Probably you will need the same change in movsi_internal. Uros.