https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63189
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Sep 8 20:07:29 2014 New Revision: 215024 URL: https://gcc.gnu.org/viewcvs?rev=215024&root=gcc&view=rev Log: PR tree-optimization/60196 PR tree-optimization/63189 Backported from mainline 2013-09-17 Cong Hou <co...@google.com> * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug when checking the dot production pattern. The type of rhs operand of multiply is now checked correctly. * gcc.dg/vect/pr63189.c: New test. * gcc.dg/vect/pr60196-1.c: New test. * gcc.dg/vect/pr60196-2.c: New test. Backported from mainline 2013-09-17 Cong Hou <co...@google.com> * gcc.dg/vect/vect-reduc-dot-s16c.c: Add a test case with dot product on two arrays with short and int types. This should not be recognized as a dot product pattern. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr60196-1.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr60196-2.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr63189.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/vect-reduc-dot-s16c.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-vect-patterns.c