From 3d28cdc2cdab4fca880e737602c29e08ba01ef76 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 6 Oct 2017 08:23:56 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/graphite/pr82422.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/graphite/pr82422.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10ec90e807d..64783cdf70b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/gcc.dg/graphite/pr82422.c b/gcc/testsuite/gcc.dg/graphite/pr82422.c new file mode 100644 index 00000000000..281a7490c92 --- /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]; +} -- 2.30.2