https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79733
--- Comment #10 from uros at gcc dot gnu.org --- Author: uros Date: Fri Apr 7 05:15:54 2017 New Revision: 246752 URL: https://gcc.gnu.org/viewcvs?rev=246752&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. testsuite/ChangeLog: Backport from mainline 2017-04-06 Uros Bizjak <ubiz...@gmail.com> PR target/79733 * gcc.target/i386/pr79733.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr79733.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/testsuite/ChangeLog