This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] Tweak new gcc.dg/fold-compare-1.c for recent changes
- From: Roger Sayle <roger at eyesopen dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 Oct 2006 19:16:52 -0700 (MST)
- Subject: [Committed] Tweak new gcc.dg/fold-compare-1.c for recent changes
Turns out that although my recent fold-const.c changes were bootstrapped
and regression tested against yesterday's tree, 20061028, changes to the
way we canonicalize trees in the last 24 hours, mean that my regular
expressions no longer match. The following obvious patch resolves the
"mid-air collision" with Richard Guenther's comparison canonicalization
change :-)
Tested on i686-pc-linux-gnu. Committed to mainline as obvious.
2006-10-29 Roger Sayle <roger@eyesopen.com>
* gcc.dg/fold-compare-1.c: Update to reflect recent changes in
tree canonicalization.
Index: gcc.dg/fold-compare-1.c
===================================================================
*** gcc.dg/fold-compare-1.c (revision 118159)
--- gcc.dg/fold-compare-1.c (working copy)
*************** int test8(int l)
*** 47,53 ****
/* { dg-final { scan-tree-dump-times "f == -6" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "h < g" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "j >= i" 1 "original" } } */
! /* { dg-final { scan-tree-dump-times "k > -4" 1 "original" } } */
! /* { dg-final { scan-tree-dump-times "l <= -3" 1 "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */
--- 47,53 ----
/* { dg-final { scan-tree-dump-times "f == -6" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "h < g" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "j >= i" 1 "original" } } */
! /* { dg-final { scan-tree-dump-times "k >= -3" 1 "original" } } */
! /* { dg-final { scan-tree-dump-times "l < -2" 1 "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */
Roger
--