Message ID | Y6SOhUlYMGLtprFN@e124511.cambridge.arm.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp64036wrn; Thu, 22 Dec 2022 09:08:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+OB+rj7MAOU/dcU2GUbDJIVbVJQkOJl63G8dYXPN2VA8fU3dydH1x6u4xRX8+k1/mFeEj X-Received: by 2002:a17:906:78c:b0:7ad:e52c:12e6 with SMTP id l12-20020a170906078c00b007ade52c12e6mr4984774ejc.41.1671728891987; Thu, 22 Dec 2022 09:08:11 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i10-20020a170906264a00b007c128ebacfcsi631324ejc.835.2022.12.22.09.08.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 09:08:11 -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=xdBXSkqb; arc=fail (signature failed); 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 6E6E03850F07 for <ouuuleilei@gmail.com>; Thu, 22 Dec 2022 17:08:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E6E03850F07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671728880; bh=k6XKBwztvK08MNlNz+/rdKWSoSgDcwHudv7+3rOCnU8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xdBXSkqbSKx5ULL/ihNZMqcAMIzrf99GFbd2AQ0L2kif7VZGnmaFqsQinyvMo96ZA JXP4/1Gt9Ookk1P4edpOnauAEmVnh5sqMnJLAaS0bldhm09tLbX3YhaiRxPFB0oRRs 2h2xUH/rn/AiKyG0ppecEK/2nDRZsMyBLco9ql04= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2081.outbound.protection.outlook.com [40.107.14.81]) by sourceware.org (Postfix) with ESMTPS id 3DA2C3850F18 for <gcc-patches@gcc.gnu.org>; Thu, 22 Dec 2022 17:06:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3DA2C3850F18 Received: from FR3P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::18) by PAWPR08MB9068.eurprd08.prod.outlook.com (2603:10a6:102:330::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.6; Thu, 22 Dec 2022 17:06:24 +0000 Received: from VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:1c:cafe::8d) by FR3P281CA0036.outlook.office365.com (2603:10a6:d10:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.11 via Frontend Transport; Thu, 22 Dec 2022 17:06:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VI1EUR03FT007.mail.protection.outlook.com (100.127.144.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.10 via Frontend Transport; Thu, 22 Dec 2022 17:06:23 +0000 Received: ("Tessian outbound 0d7b2ab0f13d:v132"); Thu, 22 Dec 2022 17:06:23 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 796e475bbba02ed0 X-CR-MTA-TID: 64aa7808 Received: from 9f918d93619e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 00BEDD8D-39BE-4FCD-97C4-235A461BC7A7.1; Thu, 22 Dec 2022 17:06:16 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9f918d93619e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 22 Dec 2022 17:06:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gFtgs15Jfa3IEIt69ge3OxIqfJZs5E0xIE0YJo19ccKtkPJbjLtRDUn+7nylLK/y6oszFspj3FNvvaitzlS+lAP0FtFQdZw6ff47RMJN1380nR/TVFFgMTRQi3SH1EC3Zl/qhYhd77ZUXE/flKZ94KAwqSoQw8t9D3i7yWYlbnNaiNb0mlkfybxLtqxYTnFuDTHMl9XouCB0FzJrh+aN1mnQhNCEtW+LCERwS/DXNOI2UfE4ehXZ1qGEfd8y5h8EE/NKg1IKFpiCy0xVpC5GsXye38YL5jxyGZR0XPnRKxqxtDY6QOBjiotacsFkNJpyFcv5u9A90UCvwRlGKezvlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k6XKBwztvK08MNlNz+/rdKWSoSgDcwHudv7+3rOCnU8=; b=F6mTRNgLxnynQu5yNpMzTUmX+J3McBI8BvbXSWvjNYE9jFgOhAAI8hGZeEWrGN7Hynte6pR9II65w7uySOH+tM90hN8exg8KiQwYNr7cVliBy16wmqsCw12+ZaWiQwhlX32uXIMpKN0hFS7m9cJ7kFfHkYVjiaEL1iXHNv2dSj26aCSBhl6K5kPTfNr9uYLht83njXB779up/UTu5xVgNw8zUK6EtYV2K3AtTHTwLkzxNEcUQ5Wi7IRScoR1ZaewtkoVfcoGWdAJ0bimp8DwIGNidhfMttHFE2Jhw49rY5B9gUvLWUI3ucF1ILNrf1VYQo07foGc9ZY6R2+r8B2hYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by AS8PR08MB6038.eurprd08.prod.outlook.com (2603:10a6:20b:23f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.13; Thu, 22 Dec 2022 17:06:15 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::8256:29ca:bcd8:b754]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::8256:29ca:bcd8:b754%5]) with mapi id 15.20.5944.011; Thu, 22 Dec 2022 17:06:15 +0000 Date: Thu, 22 Dec 2022 17:06:13 +0000 To: gcc-patches@gcc.gnu.org Subject: [committed] docs: Fix peephole paragraph ordering Message-ID: <Y6SOhUlYMGLtprFN@e124511.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0505.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:272::15) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|AS8PR08MB6038:EE_|VI1EUR03FT007:EE_|PAWPR08MB9068:EE_ X-MS-Office365-Filtering-Correlation-Id: 06af731e-d60d-463c-bd0f-08dae43edae5 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: PQtpeYN7HJJZ2Utqgt4Kn7LUBFcQGnOfmzkHA09pk4i34KM6/wVhfpLR1FVBamgQCfI2Fto5rNU2URNwpaWYLo3yxYbm4jWVpUJZ+HN9yjKMKzclbwFA49LhGZbK1mCq9EI8LUyOv1UXIwW1yr5aiH3nDovJr+Mm3yVNyjPX4QXw0zkgK39onFwYGkYQJ8qbYWraTvs4QfAXO4vpt2de/9W7FEYu1VZ9Heo+7cDyLtbK68xHwvDyUxi8bu6xS6yq1o6ZumcTytbPO7+5yJebBXjv99wGqtv+h40Xiy/J8ui7MlDW9KbwJ7UDsXEIQHLN2f4ml3Sb+ImRstORxW5AQG23l7W+RXZX7CGH2cmioGgVKDMDsv7s2Jb4FKnm8erjFWcn4RWxjCwCTrT3lzIvIGtgxEKVDi0HeP6Kj3c3PxAaSukxwh5RXF9BcgIdZad8vWRkQxPb97aZJOjxeevJwwXre8vvMBa4A6wS5m4f8oCbACjJdXLQS4GE80kK6KbNgN8nbNi87uXb5BYmOscqTVDsWhqn+Trmrm7RhYWtGBR5FSxTiz9WRp7rP4lfI6SlTFv1o7Ie3mCPJ4f1dQvvIsYFjiMi9AY32H9bCMRoj43aaeEMtLLPbNXSCVA6SDCU0IFg+kVN8bSrKj494RrEtg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(136003)(366004)(396003)(39860400002)(376002)(451199015)(8676002)(66946007)(66556008)(66476007)(8936002)(6506007)(6916009)(316002)(6486002)(38100700002)(478600001)(41300700001)(26005)(5660300002)(86362001)(186003)(6512007)(2906002)(44832011)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6038 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 70257d03-0ce1-4d5c-fc7a-08dae43ed5c3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OUNrVK3QeLTqZh4W+OPA2NpULiuPUs3E9MbGLcolV9QL6Z0WvCrL4iCbVbpQHStOcsacdUO+cZltDaDosWIF39TKE8zyAe09TSeM/ajmwmrbAuzYr4LiqZzOHStPA2gIBWK/+U7xgzFZAMvBix3TbWp3zqAi86en7NC89cSL8k7HytY4PNzwx92lVt1i/9z/rnjVzZ+YkAAVxVmj1xdCLJ+dJRLLLzGgKxcjPOPCM5otUo0e4vs4NZsB62V2K0u8zJvQ/cyEZpcQxBS8sVhl4jDUMBCSNsBsJ6j73sgQCne3cZbtNsvevRD8cf7KL9e6SZ5gfc8/mzb+VAkupOhzrLoGIptqs0q1RiQnrjZ3wOHKP0FVQIwz6qCKjDvE+0G9QATnNdOA9N/cV8QGkh1HM1fqMCTVpKl1pTjtQmRottKZdNpOsvwUJ/GpjkdgU2/brVx7ySquQaibrhRvm0bBX7n+A2MTfQtlzUm7FjG6+NIA5VIdtFFnPh9dZcQZcmhdt1vVS/ORtaiuPabHr/NurgZYjqK2vNddnDQPvdBLkcPAv4pY/JJVRfJl1vfd9LLAyApnPD7v8EaxnxWTTBEN2cOWY2s1JrBnEiOI1GN3hadl0zyKDxJ9YSd7ShoFsStGxBTXFbUbDq7J/AotDWmb43v+gkQNCxhPIXpdSvMJTnUb+Dzxzp9wl9ieV9qHsUBUEf1D3DudYEY5uBbAcAo+eQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(136003)(39860400002)(346002)(376002)(396003)(451199015)(36840700001)(46966006)(40470700004)(356005)(81166007)(70586007)(70206006)(86362001)(83380400001)(5660300002)(8936002)(44832011)(36860700001)(82740400003)(6916009)(316002)(40460700003)(26005)(336012)(6486002)(478600001)(47076005)(2906002)(82310400005)(41300700001)(8676002)(6512007)(186003)(40480700001)(6506007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2022 17:06:23.6847 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06af731e-d60d-463c-bd0f-08dae43edae5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9068 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Andrew Carlotti via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Andrew Carlotti <andrew.carlotti@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752934794875489496?= X-GMAIL-MSGID: =?utf-8?q?1752934794875489496?= |
Series |
[committed] docs: Fix peephole paragraph ordering
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Andrew Carlotti
Dec. 22, 2022, 5:06 p.m. UTC
The documentation for the DONE and FAIL macros was incorrectly inserted between example code, and a remark attached to that example. Committed as obvious. gcc/ChangeLog: * doc/md.texi: Move example code remark next to it's code block. ---
Comments
Patches attached to the wrong email - this patch was actually: On Thu, Dec 22, 2022 at 05:06:13PM +0000, Andrew Carlotti via Gcc-patches wrote: > The documentation for the DONE and FAIL macros was incorrectly inserted > between example code, and a remark attached to that example. > > Committed as obvious. > > gcc/ChangeLog: > > * doc/md.texi: Move example code remark next to it's code block. > > --- diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index cc28f868fc85b5148450548a54d69a39ecc4f03a..c1d3ae2060d800bbaa9751fcf841d7417af1e37d 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -9321,6 +9321,11 @@ so here's a silly made-up example: "") @end smallexample +@noindent +If we had not added the @code{(match_dup 4)} in the middle of the input +sequence, it might have been the case that the register we chose at the +beginning of the sequence is killed by the first or second @code{set}. + There are two special macros defined for use in the preparation statements: @code{DONE} and @code{FAIL}. Use them with a following semicolon, as a statement. @@ -9348,11 +9353,6 @@ If the preparation falls through (invokes neither @code{DONE} nor @code{FAIL}), then the @code{define_peephole2} uses the replacement template. -@noindent -If we had not added the @code{(match_dup 4)} in the middle of the input -sequence, it might have been the case that the register we chose at the -beginning of the sequence is killed by the first or second @code{set}. - @end ifset @ifset INTERNALS @node Insn Attributes
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 482e86f15d8b312c67d4962510ce879fb5cbc541..78dc6d720700ca409677e44a34a60d4b7fceb046 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -1511,7 +1511,7 @@ operand 1 (meaning it must match operand 0), and @samp{dKs} for operand 2. The second alternative has @samp{d} (data register) for operand 0, @samp{0} for operand 1, and @samp{dmKs} for operand 2. The @samp{=} and @samp{%} in the constraints apply to all the alternatives; their -meaning is explained in the next section (@pxref{Class Preferences}). +meaning is explained in a later section (@pxref{Modifiers}). If all the operands fit any one alternative, the instruction is valid. Otherwise, for each alternative, the compiler counts how many instructions