This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix stringop-1.c testcase
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 14 Jan 2007 21:09:53 +0100
- Subject: Fix stringop-1.c testcase
Hi,
This patch updates stringop-1 pattern to expect that memcpy is folded
into assignment.
I've regtested it on i686-linux and comitted as default.
Honza
Index: ChangeLog
===================================================================
*** ChangeLog (revision 120780)
--- ChangeLog (working copy)
***************
*** 1,5 ****
--- 1,6 ----
2007-01-14 Jan Hubicka <jh@suse.cz>
+ * gcc.dg/tree-prof/stringop-1.c: Update pattern for memcpy folding.
* gcc.dg/tree-ssa/vrp11.c: Fix thinkos in my last patch.
* gcc.dg/always_inline3.c: Update for pre-inline tail recursion
elimination.
Index: gcc.dg/tree-prof/stringop-1.c
===================================================================
*** gcc.dg/tree-prof/stringop-1.c (revision 120780)
--- gcc.dg/tree-prof/stringop-1.c (working copy)
*************** main()
*** 15,20 ****
}
/* { dg-final-use { scan-tree-dump "Single value 4 stringop" "tree_profile"} } */
/* Really this ought to simplify into assignment, but we are not there yet. */
! /* { dg-final-use { scan-tree-dump "memcpy.*4\\)" "optimized"} } */
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */
--- 15,21 ----
}
/* { dg-final-use { scan-tree-dump "Single value 4 stringop" "tree_profile"} } */
/* Really this ought to simplify into assignment, but we are not there yet. */
! /* a[0] = b[0] is what we fold the resulting memcpy into. */
! /* { dg-final-use { scan-tree-dump "a.0. = b.0." "optimized"} } */
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */