re PR testsuite/66720 (gcc.dg/vect/pr48052.c FAILs)
authorBin Cheng <bin.cheng@arm.com>
Mon, 6 Jul 2015 05:57:56 +0000 (05:57 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 6 Jul 2015 05:57:56 +0000 (05:57 +0000)
PR tree-optimization/66720
* gcc.dg/vect/pr48052.c: Use dg-require-effective-target
vect_int_mult.

From-SVN: r225443

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr48052.c

index 2eb4fdc22a48268f2c6499bff8d59dcd52061e3b..e1f30e4d693135bc28ba349d09ec59d2d11a5568 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-06  Bin Cheng  <bin.cheng@arm.com>
+
+       PR tree-optimization/66720
+       * gcc.dg/vect/pr48052.c: Use dg-require-effective-target
+       vect_int_mult.
+
 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
            Sandra Loosemore <sandra@codesourcery.com>
 
index 7e99c5508fdbd552176a6c9a01708163a7799a15..071e0bc7b65d9a0f341c5a6f3e0eba20589eb474 100644 (file)
@@ -1,9 +1,9 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-O3" } */
+/* { dg-require-effective-target vect_int_mult } */
 
 int foo(int* A, int* B,  unsigned start, unsigned BS)
 {
-  int s;
+  int s = 0;
   for (unsigned k = start;  k < start + BS; k++)
     {
       s += A[k] * B[k];
@@ -14,7 +14,7 @@ int foo(int* A, int* B,  unsigned start, unsigned BS)
 
 int bar(int* A, int* B, unsigned BS)
 {
-  int s;
+  int s = 0;
   for (unsigned k = 0;  k < BS; k++)
     {
       s += A[k] * B[k];