diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da107c34b3d..3ebdab9996b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-09-20 Richard Biener + + PR tree-optimization/77362 + * gcc.dg/graphite/pr77362.c: New testcase. + 2017-09-20 Richard Biener PR tree-optimization/82264 diff --git a/gcc/testsuite/gcc.dg/graphite/pr77362.c b/gcc/testsuite/gcc.dg/graphite/pr77362.c new file mode 100644 index 00000000000..61b7a7dea41 --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/pr77362.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -floop-nest-optimize" } */ + +int mc[2]; +int f2, sk; +short int hm; + +void +zm (void) +{ + int k1; + + for (k1 = 0; k1 < 2; ++k1) + { + for (sk = 0; sk < 2; ++sk) + mc[sk] = hm = ++f2; + if (hm >= 0) + ++hm; + } +} +