From: Richard Guenther Date: Fri, 28 Mar 2008 13:44:41 +0000 (+0000) Subject: re PR rtl-optimization/19580 (missed load/store motion) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=626f4dd8f52c0e85892dc4bd9f7bb2a1c87e2f3c;p=gcc.git re PR rtl-optimization/19580 (missed load/store motion) 2008-03-28 Richard Guenther PR tree-optimization/19580 * gcc.dg/tree-ssa/loop-34.c: New testcase. From-SVN: r133683 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3fd0aa2c65b..8392cfe454c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-03-28 Richard Guenther + + PR tree-optimization/19580 + * gcc.dg/tree-ssa/loop-34.c: New testcase. + 2008-03-28 Richard Guenther PR tree-optimization/30317 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-34.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-34.c new file mode 100644 index 00000000000..4a0d1eaad56 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-34.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-lim-details" } */ + +int r[6]; + +void f (int n) +{ + while (-- n) + { + r [0] += r [5]; + r [1] += r [0]; + r [2] += r [1]; + r [3] += r [2]; + r [4] += r [3]; + r [5] += r [4]; + } +} + + +/* { dg-final { scan-tree-dump-times "Executing store motion of r" 6 "lim" } } */ +/* { dg-final { cleanup-tree-dump "lim" } } */