From 85a43114c926498ce981a5366e19acf79834b059 Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Sun, 13 Nov 2005 00:27:13 +0100 Subject: tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting addressing modes during calculation of costs. * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting addressing modes during calculation of costs. * testsuite/gcc.dg/tree-ssa/loop-2.c: Fix outcome. * testsuite/gcc.dg/tree-ssa/loop-3.c: Change type of loop control variable. From-SVN: r106842 --- gcc/testsuite/gcc.dg/tree-ssa/loop-2.c | 5 +++-- gcc/testsuite/gcc.dg/tree-ssa/loop-3.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/testsuite/gcc.dg') diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c index e086499..589de36 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c @@ -34,9 +34,10 @@ void xxx(void) /* { dg-final { scan-tree-dump-times " \\+ 17" 1 "vars" } } */ /* The induction variable comparison with 99 should be eliminated - and replaced by comparison of the variable for 17 * iter with 1700. */ + and replaced by comparison of one of the newly created ivs. */ -/* { dg-final { scan-tree-dump-times "1700" 1 "vars" } } */ /* { dg-final { scan-tree-dump-times "iter" 0 "vars" } } */ +/* { dg-final { scan-tree-dump-times "99" 0 "vars" } } */ +/* { dg-final { scan-tree-dump-times "100" 0 "vars" } } */ /* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c index 63e582b..82d1d2d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c @@ -11,7 +11,7 @@ int foo(int); void xxx(void) { - int iter; + long iter; for (iter = 0; iter < 100; iter++) arr_base[iter] = foo (iter); -- cgit v1.1