From patchwork Thu Jun 6 03:31:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 1944419 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=eUIruE4G; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vvqg34j3Lz20Q5 for ; Thu, 6 Jun 2024 13:33:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D52C380B463 for ; Thu, 6 Jun 2024 03:33:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by sourceware.org (Postfix) with ESMTPS id CB501386D625 for ; Thu, 6 Jun 2024 03:33:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB501386D625 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CB501386D625 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717644795; cv=none; b=gl3SX96Qw1WSBpWG3xt1cBv3WkMS6YC+I1qdN/T3RYu5XIAwirE+uzQryR9/YljlBlt8He8YNNPUIPANa6R8L/F97jxK1HuVJSUgUKxcCTAbj+uJYvwh8PkPdT8NOMQEeVVkkaHIPt34+H0dg2BQ0PnPQffR4KZ3/mODAkuSO/Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717644795; c=relaxed/simple; bh=/hYGCOIpIjejLqoskBr6EGHGsfDZKt94KFnOIJT8N5k=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=MHu+McR3wsdgsGPFjDljVdYFYpAt7E50SkdH9O4dvOFYsf0lYw9EAOmiauwYUOV/uDebDw4L0NpSz19TssjJAuQ32lG1GVpfMtELIH50jR3//qeLxRLknbjhbLi/E3Lp+TsNV3o8+DFwpF5S7eM0Ur4hCZMEUgq2MnNDtdNEOAg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717644795; x=1749180795; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/hYGCOIpIjejLqoskBr6EGHGsfDZKt94KFnOIJT8N5k=; b=eUIruE4GzGIB1Zc3E+BrJLTmuM9Pe1eCTo9SyCejwNruANzrNnbAsif2 h3hp115wGqG8pKbZy4KwEXsnCoqsc6e75k+lxgCG7zw45VZ5MvNQvp4wS EyUWgfzO4HYJBvkSNc8lot3SM1siiz6Iux+HUy4LJTK00EVPkf5/Ox9Ep I0uzRVsfhlPptfwf93DufRWCWUW70+zJe2jdgI+H2QpZ3PPqEDY1z2IPh pvu68tviINKvvsj/ukPMTn+q42PgQYkAoOwBxWknyLbiwFxZxKbFFfq8e nsbc8BIz4UGJb0zgW5efARJe1E8jfdkEV9ZPMLDj9+tWhJrIVgqMEayaw g==; X-CSE-ConnectionGUID: 2bpNS8SsQBixrnl8UtKoCA== X-CSE-MsgGUID: vjiHpg0mREWCi7IRcLQeDw== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="24860155" X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="24860155" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 20:33:13 -0700 X-CSE-ConnectionGUID: x0Vrz07WRd68XQWbNnkoqA== X-CSE-MsgGUID: jxFZ4AdzT42i+Low+Umz7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="37727552" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orviesa010.jf.intel.com with ESMTP; 05 Jun 2024 20:33:11 -0700 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 3E5921007370; Thu, 6 Jun 2024 11:33:10 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH Committed] Refine testcase for power10. Date: Thu, 6 Jun 2024 11:31:10 +0800 Message-Id: <20240606033110.3576491-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org For power10, there're extra 3 REG_EQUIV notes with (fix:SI. to avoid the failure. Check (fix:SI is from the pattern not NOTE. gcc/testsuite/ChangeLog: PR target/115365 * gcc.dg/pr100927.c: Don't scan fix:SI from the note. --- gcc/testsuite/gcc.dg/pr100927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr100927.c b/gcc/testsuite/gcc.dg/pr100927.c index ea0e627befa..8a7d69c3831 100644 --- a/gcc/testsuite/gcc.dg/pr100927.c +++ b/gcc/testsuite/gcc.dg/pr100927.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ftrapping-math -fdump-tree-optimized -fdump-rtl-final" } */ /* { dg-final { scan-tree-dump-times {(?n)= \(int\)} 3 "optimized" } } */ -/* { dg-final { scan-rtl-dump-times {(?n)\(fix:SI} 3 "final" } } */ +/* { dg-final { scan-rtl-dump-times {(?n)^[ \t]*\(fix:SI} 3 "final" } } */ int foo_ofr ()