From: Martin Liska Date: Fri, 21 Apr 2017 08:50:19 +0000 (+0200) Subject: Add test-case (PR tree-optimization/66278). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25c28f47f8c909b768cc8aac372f5616fd871e15;p=gcc.git Add test-case (PR tree-optimization/66278). 2017-04-21 Martin Liska PR tree-optimization/66278 * gcc.dg/vect/pr66278.c: New test. From-SVN: r247051 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ddee40285f3..909f258c206 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-04-21 Martin Liska + + PR tree-optimization/66278 + * gcc.dg/vect/pr66278.c: New test. + 2017-04-21 Richard Biener PR tree-optimization/80237 diff --git a/gcc/testsuite/gcc.dg/vect/pr66278.c b/gcc/testsuite/gcc.dg/vect/pr66278.c new file mode 100644 index 00000000000..3e0e2ec5e2b --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr66278.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +#define N 101 + +typedef unsigned int __uint32_t; + +int main(int argc, char **argv) +{ + __uint32_t array[N][N][N]; + + const unsigned int next = argc == 3 ? 0 : 1; + + for (unsigned i = next; i < N; i++) + array[3][3][i] = array[3][3][i] - 10; + + return array[3][3][argc]; +} + +/* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */ +/* { dg-require-effective-target vect_int } */