This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Update g++.dg/tree-ssa/ivopts-1.C
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 26 Oct 2007 10:33:48 +0200
- Subject: [PATCH, testsuite]: Update g++.dg/tree-ssa/ivopts-1.C
Hello!
Currently, ivopts-1.C tests with:
XPASS: g++.dg/tree-ssa/ivopts-1.C scan-tree-dump-not offset: -4B
XPASS: g++.dg/tree-ssa/ivopts-1.C scan-tree-dump-not &x\\[5\\]
According to the testresult logs, second XPASS can be removed, as the
test now passes on i686-*-*-*, x86_64-*-*-* and hppa*-*-*-*.
The cause for the second XPASS is described in PR 26726, comment #15:
--cut here--
------- Comment #15 From Andrew Pinski 2007-06-04 05:36 [reply] -------
One should note that:
/* { dg-final { scan-tree-dump-not "offset: -4B" "ivopts" { xfail i?86-*-*
x86_64-*-* } } } */
Will not match any more since switching over offset to sizetype.
--cut here--
Attached patch updates scanning pattern to "offset: 0x0f+fc", so we
match 0x0f...fc pattern that covers 32, 64 and possible 16bit targets.
2007-10-26 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/tree-ssa/ivopts-1.C: Remove xfail on the search for
"&x\\\[5\\\]" pattern. Search for "offset: 0x0f+fc" instead of
"offset: -4B".
The patch was tested on i686-pc-linux-gnu, committed to SVN.
Uros.
Index: g++.dg/tree-ssa/ivopts-1.C
===================================================================
--- g++.dg/tree-ssa/ivopts-1.C (revision 129643)
+++ g++.dg/tree-ssa/ivopts-1.C (working copy)
@@ -13,6 +13,6 @@
}
/* { dg-final { scan-tree-dump-not "-&x" "ivopts" } } */
-/* { dg-final { scan-tree-dump-not "offset: -4B" "ivopts" { xfail
i?86-*-* x86_64-*-* hppa*-*-* } } } */
-/* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" { xfail
i?86-*-* x86_64-*-* hppa*-*-* } } } */
+/* { dg-final { scan-tree-dump-not "offset: 0x0f+fc" "ivopts" { xfail
i?86-*-* x86_64-*-* hppa*-*-* } } } */
+/* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" } } */
/* { dg-final { cleanup-tree-dump "ivopts" } } */