diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-12 23:27:13 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-12 23:27:13 +0000 |
commit | 43d41909058057980b90b2f4d7ae77bad69f8ff2 (patch) | |
tree | 469dc7ab23a0f8d94e352c61f2fe1894d53d850f /gcc/testsuite | |
parent | b577ec5cb554bfbc91a960991489e379c59ec5e9 (diff) | |
download | gcc-43d41909058057980b90b2f4d7ae77bad69f8ff2.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106842 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loop-2.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loop-3.c | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 19a2420e974..388ea7e2f77 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-11-13 Zdenek Dvorak <dvorakz@suse.cz> + + * gcc.dg/tree-ssa/loop-2.c: Fix outcome. + * gcc.dg/tree-ssa/loop-3.c: Change type of loop control + variable. + 2005-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> testsuite/24614 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c index e086499ca27..589de363002 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 63e582b6f43..82d1d2d73c5 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); |