From: Jan Hubicka Date: Fri, 21 Jul 2023 15:31:34 +0000 (+0200) Subject: Fix gcc.dg/tree-ssa/copy-headers-9.c and gcc.dg/tree-ssa/dce-1.c failures X-Git-Tag: basepoints/gcc-15~7426 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3291f9e6cba2ea6a170ba4fc7ddbb57218d3f9f6;p=thirdparty%2Fgcc.git Fix gcc.dg/tree-ssa/copy-headers-9.c and gcc.dg/tree-ssa/dce-1.c failures This patch fixes template in the two testcases so it matches the output correctly. I did not re-test after last changes in the previous patch, sorry for that. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/copy-headers-9.c: Fix template for tree-ssa-loop-ch.cc changes. * gcc.dg/tree-ssa/dce-1.c: Likewise. --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c index 7cc162ca94d8..b49d1fc9576e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c @@ -13,8 +13,7 @@ void test (int m, int n) } while (i<10); } -/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win" 1 "ch2" } } */ -/* { dg-final { scan-tree-dump-times "May duplicate bb" 1 "ch2" } } */ -/* { dg-final { scan-tree-dump-times "Duplicating additional BB to obtain do-while loop" 1 "ch2" } } */ +/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win" 2 "ch2" } } */ +/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win. it has zero" 1 "ch2" } } */ /* { dg-final { scan-tree-dump-times "Will duplicate bb" 2 "ch2" } } */ /* { dg-final { scan-tree-dump "is now do-while loop" "ch2" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c index 91c3bcd6c1c5..3ebfa9885039 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c @@ -13,6 +13,6 @@ int foo (int b, int j) } /* Check that empty loop is eliminated in this case. We should no longer have the exit condition after the loop. */ -/* { dg-final { scan-tree-dump-not "999)" "cddce1"} } */ -/* { dg-final { scan-tree-dump-not "1000)" "cddce1"} } */ +/* { dg-final { scan-tree-dump-not "999\\)" "cddce1"} } */ +/* { dg-final { scan-tree-dump-not "1000\\)" "cddce1"} } */