From a7e3f29b79ad64f548892d3d34811ced16007fec Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Mon, 6 Jul 2015 05:57:56 +0000 Subject: [PATCH] re PR testsuite/66720 (gcc.dg/vect/pr48052.c FAILs) PR tree-optimization/66720 * gcc.dg/vect/pr48052.c: Use dg-require-effective-target vect_int_mult. From-SVN: r225443 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/vect/pr48052.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2eb4fdc22a4..e1f30e4d693 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-07-06 Bin Cheng + + PR tree-optimization/66720 + * gcc.dg/vect/pr48052.c: Use dg-require-effective-target + vect_int_mult. + 2015-07-05 Chung-Lin Tang Sandra Loosemore diff --git a/gcc/testsuite/gcc.dg/vect/pr48052.c b/gcc/testsuite/gcc.dg/vect/pr48052.c index 7e99c5508fd..071e0bc7b65 100644 --- a/gcc/testsuite/gcc.dg/vect/pr48052.c +++ b/gcc/testsuite/gcc.dg/vect/pr48052.c @@ -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]; -- 2.30.2