This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Make gcc.dg/tree-ssa/ivopt_5.c more robust
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 5 Aug 2016 10:51:52 +0200 (CEST)
- Subject: [PATCH] Make gcc.dg/tree-ssa/ivopt_5.c more robust
- Authentication-results: sourceware.org; auth=none
If edges are swapped so are PHI args, the following adjusts the pattern
for this case.
Committed.
Richard.
2016-08-05 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/ivopt_5.c: Make robust against edge swapping.
Index: gcc/testsuite/gcc.dg/tree-ssa/ivopt_5.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/ivopt_5.c (revision 239164)
+++ gcc/testsuite/gcc.dg/tree-ssa/ivopt_5.c (working copy)
@@ -20,4 +20,4 @@ void foo1 (char *pstart, int n)
*p = 1;
}
-/* { dg-final { scan-tree-dump-times "ivtmp.\[0-9_\]* = PHI <\[^0\]" 0 "ivopts"} } */
+/* { dg-final { scan-tree-dump-times "ivtmp.\[0-9_\]* = PHI <\[^0\]\[^,\]*, \[^0\]" 0 "ivopts"} } */