https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 12 17:32:38 2018 New Revision: 265120 URL: https://gcc.gnu.org/viewcvs?rev=265120&root=gcc&view=rev Log: Backported from mainline 2018-08-27 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/87065 * combine.c (simplify_if_then_else): Formatting fix. (if_then_else_cond): Guard MULT optimization with SCALAR_INT_MODE_P check. (known_cond): Don't return const_true_rtx for vector modes. Use CONST0_RTX instead of const0_rtx. Formatting fixes. * gcc.target/i386/pr87065.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr87065.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/combine.c branches/gcc-6-branch/gcc/testsuite/ChangeLog