From: Bin Cheng Date: Tue, 9 Aug 2016 15:10:55 +0000 (+0000) Subject: re PR tree-optimization/33707 (scev not handling unsigned conversion) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a5468cbb47..5674f97b67e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-08-09 Bin Cheng + + PR tree-optimization/33707 + * gcc.dg/vect/pr33707.c: New test. + 2016-08-09 Bin Cheng PR tree-optimization/pr72772 diff --git a/gcc/testsuite/gcc.dg/vect/pr33707.c b/gcc/testsuite/gcc.dg/vect/pr33707.c new file mode 100644 index 00000000000..b55314264f1 --- /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" } } */