Message ID | 20221206091153.27281-1-wangfeng@eswincomputing.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2713912wrr; Tue, 6 Dec 2022 01:12:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7M40GAoTg1rMDrjPEAVXsEyXfho6r++x8ydkb2mnKeDEVLXGgaHkekolP/33U9S50Gak/T X-Received: by 2002:a17:906:1614:b0:78d:4e5b:ffaa with SMTP id m20-20020a170906161400b0078d4e5bffaamr55132725ejd.455.1670317960715; Tue, 06 Dec 2022 01:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670317960; cv=none; d=google.com; s=arc-20160816; b=f8URqg07kIravNl9uGMyXKfSz43JI2iELyzQJArlnvG6ZU1enIw4MVr+Hq3p9ltEIx 5tpwXK5YAk+uOB+sO6ZyARIXSbCBA31o8ACBYg51frln3bMkcv8htsP5igaz0eGAPqis UqASxyDESnQwfznOM0BElyG7tGITmeXwvsdYmAgPgEvvrmSts2DZ/s69HNKaQNaf+Zl1 LUahXVOdzB7WvHrCaAXmh0dUa3FJcAiwQu4MDF/ZQhOx9n/ONnmWuf7BvfDkeGr/zIAi rDZg4OzwxzjV6Nnihlm6VrbT5ZFVvF/AEJa48MI1x6TOaoW3IP68U7sGW+OzAJiuXK8/ +w5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=+4NVUxbheze3F+b2qKQchnKmJ58DMgfJBc8+MT9/VKI=; b=QhNVqwkRynhi7VoXcKcbOwrvCFgGMZAh1MlzVdUJoD2pI7V6BkOydqP+oBQlBFlPfT C9nTWaNKglBxZdv6rwTtKAs6WRHgFai0itmgcbtDpZHDPTQoTIxsEiRHeo1IXDdrsRjc G4EiNjWHhIYO0YneHzk0XVaLhRAfuk7IyuEZRpf6b7xuTdeUj7JvHXiasES1NfJ3Bq11 FC+Y/NIKiRV8F0kLZnl1JjVa+Sr2kDV45IyHW9aZrZLYUeZ7lcucWSmOy02sesOzCr+F 5MgGVdy33oM9w0Ira8tdirj6nIxCf/WW/KAh6hRfQsATYY+wE/KcCEf3EGxevLenKLnf K+bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g23-20020a170906349700b007ae86742c20si10737950ejb.282.2022.12.06.01.12.40 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 01:12:40 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32C87395B07C for <ouuuleilei@gmail.com>; Tue, 6 Dec 2022 09:12:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [52.187.6.220]) by sourceware.org (Postfix) with SMTP id DE5F23959CB7 for <gcc-patches@gcc.gnu.org>; Tue, 6 Dec 2022 09:12:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DE5F23959CB7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eswincomputing.com Received: from localhost.localdomain (unknown [10.12.130.31]) by app2 (Coremail) with SMTP id EggMCgC3iC1fB49jQ3AWAA--.34031S4; Tue, 06 Dec 2022 17:11:59 +0800 (CST) From: Feng Wang <wangfeng@eswincomputing.com> To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Feng Wang <wangfeng@eswincomputing.com> Subject: [PATCH v2 0/1] RISC-V: Optimze the reverse conditions of rotate shift Date: Tue, 6 Dec 2022 09:11:52 +0000 Message-Id: <20221206091153.27281-1-wangfeng@eswincomputing.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: EggMCgC3iC1fB49jQ3AWAA--.34031S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw1kCry3Jr1rJr17CF13CFg_yoWDZwb_Kr 48GFyYgryUWay8JFWUArn3GryUK395Xr97tayDJr4j9ryDWryDWw1DJF1jvFy8Ar18JFWf JF1xJryxt3s8XjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIkFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j 6rxdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkF7I0En4kS14v26r12 6r1DMxkIecxEwVCm-wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s 026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_ JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20x vEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE 14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf 9x0JUBmhwUUUUU= X-CM-SenderInfo: pzdqwwxhqjqvxvzl0uprps33xlqjhudrp/ X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, 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 <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> 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?1751455326236301943?= X-GMAIL-MSGID: =?utf-8?q?1751455326236301943?= |
Series |
RISC-V: Optimze the reverse conditions of rotate shift
|
|
Message
Feng Wang
Dec. 6, 2022, 9:11 a.m. UTC
The first patch is https://gcc.gnu.org/pipermail/gcc-patches/2022-November/607332.html. Accroding to Jeff's suggestion I added some conditions when reverse the rotate shift during RTL expansion and RTL optimization. wangfeng (1): RISC-V: Optimze the reverse conditions of rotate shift gcc/config/riscv/bitmanip.md | 4 +- gcc/expmed.cc | 14 ++-- gcc/rtl.h | 1 + gcc/simplify-rtx.cc | 49 ++++++++++---- .../gcc.target/riscv/zbb-rol-ror-04.c | 52 +++++++++++++++ .../gcc.target/riscv/zbb-rol-ror-05.c | 24 +++++++ .../gcc.target/riscv/zbb-rol-ror-06.c | 36 +++++++++++ .../gcc.target/riscv/zbb-rol-ror-07.c | 64 +++++++++++++++++++ 8 files changed, 219 insertions(+), 25 deletions(-) create mode 100644 gcc/testsuite/gcc.target/riscv/zbb-rol-ror-04.c create mode 100644 gcc/testsuite/gcc.target/riscv/zbb-rol-ror-05.c create mode 100644 gcc/testsuite/gcc.target/riscv/zbb-rol-ror-06.c create mode 100644 gcc/testsuite/gcc.target/riscv/zbb-rol-ror-07.c