i386: Emulate MMX vec_dupv2si with SSE
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 15 May 2019 15:11:07 +0000 (15:11 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 15 May 2019 15:11:07 +0000 (08:11 -0700)
commit74e299b9299a03ddf44cfa7f0660c908c3257dfc
treed7a166c49fd1a00a60d893dd4a63642f3fe04bae
parent2629da835003ae3ca3f39a4888fa447fe966b011
i386: Emulate MMX vec_dupv2si with SSE

Emulate MMX vec_dupv2si with SSE.  Add the "Yw" constraint to allow
broadcast from integer register for AVX512BW with TARGET_AVX512VL.
Only SSE register source operand is allowed.

PR target/89021
* config/i386/constraints.md (Yw): New constraint.
* config/i386/mmx.md (*vec_dupv2si): Changed to
define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
support SSE emulation.

From-SVN: r271225
gcc/ChangeLog
gcc/config/i386/constraints.md
gcc/config/i386/mmx.md