From patchwork Mon Nov 28 20:12:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 26945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5919013wrr; Mon, 28 Nov 2022 12:13:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uvWC378z5Q8cdqa9j+cjNAssTjjWqU0k+GXXBhM3/B8gu73a7lgBoFF8OPtcXZ+hp76MI X-Received: by 2002:a17:907:cf84:b0:78d:4795:ff1f with SMTP id ux4-20020a170907cf8400b0078d4795ff1fmr46207351ejc.331.1669666398473; Mon, 28 Nov 2022 12:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669666398; cv=none; d=google.com; s=arc-20160816; b=cvShprp5ZUYm03bxYHnS4ltYbLGkU4ybPgnQMr6qfoOmPme5Qv4VlTkrM1gUV727xw qqNWWm7bhlmHvaojy8IIYuU37wcc+gKskJEDd8+0SeRlBf8VtooAYUR/XjJvFHsfF6Ys ugJ7Tk5Jf/3GoH/cSxds0MiQNHB1suzbV4j6Uojw6tDwE5CPKdvi0lnMhgUzK+cT+Ys5 neob3wH/PswHgHu7sYBQmiKojVcyCd64t5pZagj3N9msLrSgFqWuHKihTGIh8RuXyXMB EhNJD2s1OiOVFjPqAg3RD/kOv9oRY2KIY7tHQnFy87bDwtzhK/SoeKZJXBdauvYvYz/p s82Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=aCV8sGJvig+GuLaZFkmWJ9IAuiAIWTgjyZ698QESF1U=; b=K34Ox0FWBMce7rulsqpa3YyzMJuvRukwamnqJZnklDS+ygP2ZUiSB+HTFxsrtXkCsM Ig7oSOWCWt7XAKN0A+ca2uWCp7xgoMAOYyJyb/aVCkwJtUr8XbMD+46zVQbSSnjsf6xJ tVoiC2BmkD2jQfdbgeZItesRCk7rbE6qJjY50MV6H5aW1DBADY3Qe3YrledyaDbPx21k lfR+Y5IaQVt0jdoYs5f+DAP3uDJcnTqo/+o0WicMFC1qbdyJLG824r1Fq+vqCOWxV8su JyH/YUgk3zdFRvZrmk4j1vRYWS0sGEygqF8n0nXCnAEz0mrthgdprJU00KnOAwz9uwP+ 3i7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SwgY3u+d; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id xd9-20020a170907078900b0078df2f22f80si10593029ejb.647.2022.11.28.12.13.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 12:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SwgY3u+d; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 76981385B535 for ; Mon, 28 Nov 2022 20:13:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76981385B535 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669666397; bh=aCV8sGJvig+GuLaZFkmWJ9IAuiAIWTgjyZ698QESF1U=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=SwgY3u+dX9XlP5ChezPV6+FjuQeljwdoVKS7oitKYj1Dh+LIsvQ9U8H1rEo5DLb5T 5q3+51rZADsreZNFITpXIpUX47ZVQ48ak6UjkODJdbwIhZ7Anop58DQRzxLwg9GLIY lxWsT5rh+0/cR+gloKjKfsbbfsaCjNwOCc7WM4fQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id 2123E3858C62 for ; Mon, 28 Nov 2022 20:12:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2123E3858C62 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ASIC7cX024119 for ; Mon, 28 Nov 2022 12:12:33 -0800 Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m4q3suf9a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 28 Nov 2022 12:12:33 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 28 Nov 2022 12:12:31 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 28 Nov 2022 12:12:31 -0800 Received: from linux.wrightpinski.org.com (unknown [10.69.242.198]) by maili.marvell.com (Postfix) with ESMTP id 71C733F7064; Mon, 28 Nov 2022 12:12:31 -0800 (PST) To: CC: Andrew Pinski Subject: [COMMITTED] Fix comment for (A / (1 << B)) -> (A >> B). Date: Mon, 28 Nov 2022 12:12:25 -0800 Message-ID: <1669666345-28322-1-git-send-email-apinski@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: mQvSVTlP2_jOSZ_4tu9V63NGqXcGuvUY X-Proofpoint-GUID: mQvSVTlP2_jOSZ_4tu9V63NGqXcGuvUY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-28_17,2022-11-28_02,2022-06-22_01 X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP 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: apinski--- via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: apinski@marvell.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750772113550156457?= X-GMAIL-MSGID: =?utf-8?q?1750772113550156457?= From: Andrew Pinski There was a small typo where Also was done twice. The second also should have been handled. This fixes that. Committed as obvious after a build. gcc/ChangeLog: * match.pd ((A / (1 << B)) -> (A >> B).): Fix comment. --- gcc/match.pd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/match.pd b/gcc/match.pd index 67a0a682f31..f8610e37011 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -354,7 +354,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) Only for unsigned A. For signed A, this would not preserve rounding toward zero. For example: (-1 / ( 1 << B)) != -1 >> B. - Also also widening conversions, like: + Also handle widening conversions, like: (A / (unsigned long long) (1U << B)) -> (A >> B) or (A / (unsigned long long) (1 << B)) -> (A >> B).