From 354bc607c125d20218b0b7fd12e6903df40e5880 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 15 Dec 2010 22:00:59 +0000 Subject: [PATCH] Add testcase for PR46404. 2010-12-15 Sebastian Pop PR tree-optimization/46404 * gcc.dg/graphite/pr46404.c: New. From-SVN: r167876 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/graphite/pr46404.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/graphite/pr46404.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09170a2..c10535c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-12-15 Sebastian Pop + + PR tree-optimization/46404 + * gcc.dg/graphite/pr46404.c: New. + 2010-12-15 Jakub Jelinek PR fortran/46945 diff --git a/gcc/testsuite/gcc.dg/graphite/pr46404.c b/gcc/testsuite/gcc.dg/graphite/pr46404.c new file mode 100644 index 0000000..9bdde4a --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/pr46404.c @@ -0,0 +1,13 @@ +/* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */ + +int l[200]; + +void +foo (void) +{ + int i = 0; + for (; i < 100; i++) + ; + for (; i; i--) + l[i]; +} -- 2.7.4