aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-11-23 09:11:00 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-11-23 09:11:00 +0000
commit16310b3fff2282f0d7e332c8fdb9d69952c920b4 (patch)
treef9d0ec396f0909a8ed78d5aaf0c79b6eed61b7c7
parent55aea9f56ccbdd0e225d4899024efd7b2b9f95b2 (diff)
downloadgcc-16310b3fff2282f0d7e332c8fdb9d69952c920b4.zip
gcc-16310b3fff2282f0d7e332c8fdb9d69952c920b4.tar.gz
gcc-16310b3fff2282f0d7e332c8fdb9d69952c920b4.tar.bz2
re PR target/68482 (No vectorization for x86-64)
2015-11-23 Richard Biener <rguenther@suse.de> PR tree-optimization/68482 * gcc.dg/vect/pr68482.c: New testcase. From-SVN: r230740
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/vect/pr68482.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fd35568..939520f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-11-23 Richard Biener <rguenther@suse.de>
+ PR tree-optimization/68482
+ * gcc.dg/vect/pr68482.c: New testcase.
+
+2015-11-23 Richard Biener <rguenther@suse.de>
+
PR tree-optimization/68445
* gcc.dg/vect/pr68445.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/vect/pr68482.c b/gcc/testsuite/gcc.dg/vect/pr68482.c
new file mode 100644
index 0000000..28a921a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr68482.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
+
+void test(int* input, int* out, unsigned x1, unsigned x2)
+{
+ unsigned i, j;
+ unsigned end = x1;
+
+ for(i = j = 0; i < 1000; i++) {
+ int sum = 0;
+ end += x2;
+ for( ; j < end; j++)
+ sum += input[j];
+ out[i] = sum;
+ }
+}
+
+/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */