i386: Enable MMX intrinsics without SSE/SSE2/SSSE3
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 17 May 2019 14:48:37 +0000 (14:48 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 17 May 2019 14:48:37 +0000 (07:48 -0700)
commit45641b316a7b2c9bdf1d7807631731457b8cc0f1
tree47880a839b3527358636589aa14ed0b1fed043e5
parent2581344df6f04d63f2662fd7b562bc6b060c557b
i386: Enable MMX intrinsics without SSE/SSE2/SSSE3

Since MMX intrinsics are marked with SSE/SSE2/SSSE3 for SSE emulation,
enable them without SSE/SSE2/SSSE3 if MMX is enabled.

Restore TARGET_3DNOW check, which was changed to TARGET_3DNOW_A by
revision 271235.

gcc/

PR target/90497
* config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
intrinsics without SSE/SSE2/SSSE3.
* config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
check.
(*mmx_uavgv8qi3): Likewise.

gcc/testsuite/

PR target/90497
* gcc.target/i386/pr90497-1.c: New test.
* gcc.target/i386/pr90497-2.c: Likewise.

From-SVN: r271328
gcc/ChangeLog
gcc/config/i386/i386-expand.c
gcc/config/i386/mmx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr90497-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr90497-2.c [new file with mode: 0644]