i386: Emulate MMX V4HI smaxmin/V8QI umaxmin with SSE
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 15 May 2019 15:15:44 +0000 (15:15 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 15 May 2019 15:15:44 +0000 (08:15 -0700)
commit18184fdd765d1a8d98b573cd5f1c11284d965451
tree4eb04b8b357624dbbd29b067436c50fe35834e6b
parent42500d835522f0858fb899b17d9b9ffb9efa71d9
i386: Emulate MMX V4HI smaxmin/V8QI umaxmin with SSE

Emulate MMX V4HI smaxmin/V8QI umaxmin with SSE.  Only SSE register source
operand is allowed.

PR target/89021
* config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
and TARGET_MMX_WITH_SSE.
(mmx_<code>v8qi3): Likewise.
(smaxmin:<code>v4hi3): New.
(umaxmin:<code>v8qi3): Likewise.
(smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
(umaxmin:*mmx_<code>v8qi3): Likewise.

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