tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug when checking the dot...
authorCong Hou <congh@google.com>
Tue, 17 Sep 2013 18:20:08 +0000 (14:20 -0400)
committerCong Hou <congh@gcc.gnu.org>
Tue, 17 Sep 2013 18:20:08 +0000 (14:20 -0400)
commit181f5f3e3792f3724858e5552c6c9c87198bb6ba
tree75fd528e1e86e10788fa4a4a6e084044adeff15f
parent783f0cfc8d973c147a5243d7312b85e7ea892e1c
tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug when checking the dot production pattern.

2013-09-17  Cong Hou  <congh@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/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.

From-SVN: r202663
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-reduc-dot-s16c.c [new file with mode: 0644]
gcc/tree-vect-patterns.c