aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-01-09 19:58:11 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-01-09 18:58:11 +0000
commit96b5a6c7f0232acca0f3501816ee340e59f4f711 (patch)
tree89c8d32acb8cc2ee06afd1c2e3ad4e894e477979 /gcc/testsuite
parenta34664c6badfc80216a1b37ad50c1d89f8434f22 (diff)
downloadgcc-96b5a6c7f0232acca0f3501816ee340e59f4f711.zip
gcc-96b5a6c7f0232acca0f3501816ee340e59f4f711.tar.gz
gcc-96b5a6c7f0232acca0f3501816ee340e59f4f711.tar.bz2
* gcc.dg/tree-ssa/loop-4.c: Fix outcome.
From-SVN: r93116
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loop-4.c13
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 994fd67..43d6b75 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-09 Zdenek Dvorak <dvorakz@suse.cz>
+
+ * gcc.dg/tree-ssa/loop-4.c: Fix outcome.
+
2005-01-09 Dorit Naishlos <dorit@il.ibm.com>
* gcc.dg/vect/pr18400.c: Add checks for alignment prints.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c
index a1dabfd..8ba535b 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c
@@ -23,9 +23,18 @@ void xxx(void)
arr_base[iter].y = foo ();
}
-/* Access to arr_base[iter].y should be strength reduced. */
+/* Access to arr_base[iter].y should be strength reduced. Depending on
+ whether we have an addressing mode of type [base + offset], one of the
+ following forms might get chosen:
-/* { dg-final { scan-tree-dump-times "arr_base\[^\\n\\r\]*=" 0 "vars" } } */
+ -- induction variable with base &arr_base[0].y, the memory access of
+ form *iv = ...
+ -- induction variable with base 0, the memory access of form
+ *(iv + &arr_base[0].y) = ...
+
+ In any case, we should not have 'arr_base.[^0].* =' */
+
+/* { dg-final { scan-tree-dump-times "arr_base.\[^0\]\[^\\n\\r\]*=" 0 "vars" } } */
/* And the original induction variable should be eliminated. */