From patchwork Fri Jul 21 15:37:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1810989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=SpNv3/5y; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R6txM2gnlz1yYc for ; Sat, 22 Jul 2023 01:38:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E58B3860015 for ; Fri, 21 Jul 2023 15:38:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E58B3860015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689953893; bh=lJmEByhDVuJpsS3QRzqCg2KzBbcC+iM+8z47M5JEjgk=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=SpNv3/5yd2cFy3CNuI7ejkfrjBONCPAFWjStDzD4BhH5LPtlSgHNIfIABisRBnH0I Ew/0mkvdzX7HN76zxjoIqXYhI2iGcuEILL44uU/rLsTr+YWIegNL0AcFFKED4krvof 3jvrmyczgaYDy/Ph5A0jqdcoWOHfenC/X2ulKaIM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 245CC385843E for ; Fri, 21 Jul 2023 15:37:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 245CC385843E Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 174BC28270E; Fri, 21 Jul 2023 17:37:51 +0200 (CEST) Date: Fri, 21 Jul 2023 17:37:51 +0200 To: gcc-patches@gcc.gnu.org Subject: Fix gcc.dg/tree-ssa/copy-headers-9.c and gcc.dg/tree-ssa/dce-1.c failures Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jan Hubicka via Gcc-patches From: Jan Hubicka Reply-To: Jan Hubicka Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Hi, 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 7cc162ca94d..b49d1fc9576 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 91c3bcd6c1c..3ebfa988503 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"} } */