i386: Emulate MMX pshufw with SSE
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 15 May 2019 15:11:41 +0000 (15:11 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 15 May 2019 15:11:41 +0000 (08:11 -0700)
commit3d34e8b0ea84b8f2c8db0c32272bc3d84c818b9e
tree962bd63a4daa324e2953d395aca1b31adc661386
parent74e299b9299a03ddf44cfa7f0660c908c3257dfc
i386: Emulate MMX pshufw with SSE

Emulate MMX pshufw with SSE.  Only SSE register source operand is allowed.

PR target/89021
* config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
TARGET_MMX_WITH_SSE.
(mmx_pshufw_1): Add SSE emulation.
(*vec_dupv4hi): Changed to define_insn_and_split and also allow
TARGET_MMX_WITH_SSE to support SSE emulation.

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