diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr33707.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a5468c..5674f97b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 * gcc.dg/tree-ssa/pr72772.c: New test. diff --git a/gcc/testsuite/gcc.dg/vect/pr33707.c b/gcc/testsuite/gcc.dg/vect/pr33707.c new file mode 100644 index 0000000..b553142 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr33707.c @@ -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" } } */ |