From: Richard Biener Date: Fri, 6 Oct 2017 08:23:56 +0000 (+0000) Subject: re PR tree-optimization/82422 ([graphite] ICE in set_codegen_error, at graphite-isl... X-Git-Tag: upstream/12.2.0~36530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d28cdc2cdab4fca880e737602c29e08ba01ef76;p=platform%2Fupstream%2Fgcc.git re PR tree-optimization/82422 ([graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:248) 2017-10-06 Richard Biener PR tree-optimization/82422 * gcc.dg/graphite/pr82422.c: New testcase. From-SVN: r253479 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10ec90e..64783cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2017-10-06 Richard Biener + PR tree-optimization/82422 + * gcc.dg/graphite/pr82422.c: New testcase. + +2017-10-06 Richard Biener + PR tree-optimization/82421 * gcc.dg/graphite/pr82421.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/graphite/pr82422.c b/gcc/testsuite/gcc.dg/graphite/pr82422.c new file mode 100644 index 0000000..281a749 --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/pr82422.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -floop-nest-optimize -Wno-aggressive-loop-optimizations" } */ + +int a; +int b[6]; +int c () +{ + int d; + for (; d; d++) + b[d] = 0; + for (; d < 8; d++) + a += b[d]; +}