From: Bin Cheng Date: Thu, 5 May 2016 16:20:54 +0000 (+0000) Subject: re PR tree-optimization/57206 (Auto-vectorization fails when array index is an unsign... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4f2425fe89117aa586d717c4d7d3b25c46bee66;p=gcc.git re PR tree-optimization/57206 (Auto-vectorization fails when array index is an unsigned int expression) gcc/testsuite PR tree-optimization/57206 * gcc.dg/vect/pr57206.c: New test. From-SVN: r235926 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 79488a217a6..9ec6eb7c322 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-05-05 Bin Cheng + + PR tree-optimization/57206 + * gcc.dg/vect/pr57206.c: New test. + 2016-05-05 Rainer Orth * gcc.dg/ipa/inline-8.c (isnanf): Declare. diff --git a/gcc/testsuite/gcc.dg/vect/pr57206.c b/gcc/testsuite/gcc.dg/vect/pr57206.c new file mode 100644 index 00000000000..009688e93b0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr57206.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_float } */ + +void bad0(float * d, unsigned int n) +{ + unsigned int i; + for (i=n; i>0; --i) + d[n-i] = 0.0; +} + +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */