i386: Emulate MMX pshufb with SSE version
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 15 May 2019 15:26:19 +0000 (15:26 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 15 May 2019 15:26:19 +0000 (08:26 -0700)
commit16ed2601ad0a4aa82f11e9df86ea92183f94f979
tree95313e1174ccadadd8a79cd8cbe7807db53b0b0b
parent9c5a35333444ae069556b59338b25550a84b5055
i386: Emulate MMX pshufb with SSE version

Emulate MMX version of pshufb with SSE version by masking out the bit 3
of the shuffle control byte.  Only SSE register source operand is allowed.

PR target/89021
* config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
SSE emulation.

From-SVN: r271245
gcc/ChangeLog
gcc/config/i386/sse.md