re PR tree-optimization/33707 (scev not handling unsigned conversion)
authorBin Cheng <bin.cheng@arm.com>
Tue, 9 Aug 2016 15:10:55 +0000 (15:10 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 9 Aug 2016 15:10:55 +0000 (15:10 +0000)
gcc/testsuite
PR tree-optimization/33707
* gcc.dg/vect/pr33707.c: New test.

From-SVN: r239292

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr33707.c [new file with mode: 0644]

index 3a5468cbb478ff90d4dd6f14f947804d9caa6bcd..5674f97b67edd221a589e86b6d1380d04f134324 100644 (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
diff --git a/gcc/testsuite/gcc.dg/vect/pr33707.c b/gcc/testsuite/gcc.dg/vect/pr33707.c
new file mode 100644 (file)
index 0000000..b553142
--- /dev/null
@@ -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" } } */