summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr30795.c
diff options
context:
space:
mode:
authordorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-19 08:46:45 +0000
committerdorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-19 08:46:45 +0000
commit435c10320330151f08321bbbc821a4084cfb7c72 (patch)
tree5db2d0b024834594c5a831e83a077e055f02ce2d /gcc/testsuite/gcc.dg/vect/pr30795.c
parentec72623f7c8d0a87c87160c3c07e0f607c589b1c (diff)
downloadgcc-435c10320330151f08321bbbc821a4084cfb7c72.tar.gz
PR tree-optimization/30975
* tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove wrong assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122127 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/pr30795.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/pr30795.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr30795.c b/gcc/testsuite/gcc.dg/vect/pr30795.c
new file mode 100644
index 00000000000..53dc9fa51f3
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr30795.c
@@ -0,0 +1,19 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
+
+char bigDone[260];
+int runningOrder[260];
+
+int
+main()
+{
+ int i;
+ for (i = 0; i <= 255; i++) {
+ bigDone [i] = ((char)0);
+ runningOrder[i] = i;
+ }
+ return 0;
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */