From c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Tue, 9 Aug 2016 15:10:55 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/vect/pr33707.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/vect/pr33707.c 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" } } */ -- 2.30.2