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
This commit is contained in:
Bin Cheng 2016-05-05 16:20:54 +00:00 committed by Bin Cheng
parent 5dc081978c
commit c4f2425fe8
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-05-05 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/57206
* gcc.dg/vect/pr57206.c: New test.
2016-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/ipa/inline-8.c (isnanf): Declare.

View File

@ -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" } } */