re PR tree-optimization/33707 (scev not handling unsigned conversion)

gcc/testsuite
	PR tree-optimization/33707
	* gcc.dg/vect/pr33707.c: New test.

From-SVN: r239292
This commit is contained in:
Bin Cheng 2016-08-09 15:10:55 +00:00 committed by Bin Cheng
parent 42970a179d
commit c57e78c4be
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-08-09 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/33707
* gcc.dg/vect/pr33707.c: New test.
2016-08-09 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/pr72772

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
int
foo (char *a, unsigned n)
{
int i;
a[0] = 0;
for (i = 16; i < n; i++)
a[i] = a[i-16];
}
/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */