https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80298
--- Comment #8 from uros at gcc dot gnu.org --- Author: uros Date: Thu Apr 6 21:06:08 2017 New Revision: 246744 URL: https://gcc.gnu.org/viewcvs?rev=246744&root=gcc&view=rev Log: Backport from mainline 2017-04-06 Uros Bizjak <ubiz...@gmail.com> PR target/79733 * config/i386/i386.c (ix86_expand_builtin) <case IX86_BUILTIN_KORTEST{C,Z}16>: Determine insn operand mode from insn data. Convert operands to insn operand mode. Copy operands that don't satisfy insn predicate to a register. 2017-04-05 Uros Bizjak <ubiz...@gmail.com> PR target/80298 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is not defined for x86_64 target. Add -mmmx target option when __SSE2__ is not defined. * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined for x86_64 target. testsuite/ChangeLog: Backport from mainline 2017-04-06 Uros Bizjak <ubiz...@gmail.com> PR target/79733 * gcc.target/i386/pr79733.c: New test. 2017-04-06 Uros Bizjak <ubiz...@gmail.com> PR target/80298 * gcc.target/i386/pr80298-1.c: New test. * gcc.target/i386/pr80298-2.c: Ditto. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79733.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr80298-1.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr80298-2.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/i386.c branches/gcc-6-branch/gcc/config/i386/mm3dnow.h branches/gcc-6-branch/gcc/config/i386/mmintrin.h branches/gcc-6-branch/gcc/testsuite/ChangeLog