https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78227
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 22:48:38 2016 New Revision: 243399 URL: https://gcc.gnu.org/viewcvs?rev=243399&root=gcc&view=rev Log: Backported from mainline 2016-11-07 Jakub Jelinek <ja...@redhat.com> PR target/78227 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp. * gcc.target/i386/pr78227-1.c: New test. * gcc.target/i386/pr78227-2.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr78227-1.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr78227-2.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/i386.c branches/gcc-6-branch/gcc/testsuite/ChangeLog