OSDN Git Service

* gcc.dg/tree-ssa/loop-4.c: Fix outcome.
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jan 2005 18:58:11 +0000 (18:58 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jan 2005 18:58:11 +0000 (18:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-4.c

index 994fd67..43d6b75 100644 (file)
@@ -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.
index a1dabfd..8ba535b 100644 (file)
@@ -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.  */