]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gcc.dg/tree-ssa/copy-headers-9.c and gcc.dg/tree-ssa/dce-1.c failures
authorJan Hubicka <jh@suse.cz>
Fri, 21 Jul 2023 15:31:34 +0000 (17:31 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 21 Jul 2023 15:31:34 +0000 (17:31 +0200)
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.

gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c
gcc/testsuite/gcc.dg/tree-ssa/dce-1.c

index 7cc162ca94d8fbbf55f07bd358c56ee71343baac..b49d1fc9576ec0422333d870fd8803154bb5de7d 100644 (file)
@@ -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" } } */
index 91c3bcd6c1c55183a84eb572eb36b35414ac0c10..3ebfa988503921881be64a4b3d35199df2f79b35 100644 (file)
@@ -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"} } */