On Sat, 2020-02-29 at 06:16 -0800, H.J. Lu wrote: > There is no need to set mode attribute to XImode since ix86_output_ssemov > can properly encode xmm16-xmm31 registers with and without AVX512VL. > > gcc/ > > PR target/89229 > * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI. > * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov > for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL > check. > > gcc/testsuite/ > > PR target/89229 > * gcc.target/i386/pr89229-5a.c: New test. > * gcc.target/i386/pr89229-5b.c: Likewise. > * gcc.target/i386/pr89229-5c.c: Likewise. Similar to #2, can't we get insn_mode to be SFmode for alternatives 10,11 and !TARGET_SSE2? Won't that cause us to hit the gcc_unreachable in ix86_output_ssemov?
jeff >