Message ID | 1660860233-11175-1-git-send-email-apinski@marvell.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp551917pxh; Thu, 18 Aug 2022 15:05:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR700rR6MgEBAcfI+waZZkFAunJs3+5COpDOKC1s38OVQafhk1at2dZ+t8RZa96mvvFWmP1h X-Received: by 2002:a17:907:728d:b0:731:8396:ea86 with SMTP id dt13-20020a170907728d00b007318396ea86mr3017422ejc.361.1660860322171; Thu, 18 Aug 2022 15:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660860322; cv=none; d=google.com; s=arc-20160816; b=v34QeLndR5l/KK887R3AOO4nNtYKV9Kj6HiViocMYUhEUi23RTyUqhjFRvUwR6WmZF 4z3DWJ6mjY6rCzlbkjISrgm5rpHbUpOdaaSoybKpO/qYT4oElMLskamgiFhsW+Rb/LtX psOFAxxjSSf756lp+bCHOtLwbtZ5V2bTsYldq0YVwldmnUxkyhpqU/TqbZ31eRF8qHQj Jl7R+N3k2t6K9zivKQuIqAbiRzriElb7gnMRjD9t7jjisG3pCQpbtc/sqtuPlIoTME0d V5J9W6rzVghiUJPwCZSW8eqNcU3cau9glWK6cT2/nATFBlUh+HCNOIHLj+T6iFdarsX9 Q+Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=Z4Jv5YvKZKS+tSQpKvw2hnOgUTnJSG7+rL90DJhEl7A=; b=R03jF+s0gSMssTpvBobusZeikuQMz2Pqs4UODUpB3dbUsqmFs4POKOatM2GNzd1JHg eGRd5CLzGT+O5fo5sIg4scehJ4vi+SIK/LX+3S0kr1uLGZcQbCR0FqOHFHL5yGwgk9PP uC1syEcAG71KHQ/PMotZjeX+g1GR1MaMtr3OuZy1PO4i9a5POjrDJ/WJsTWmCANRc+jt Bf+GmsSW/YGmVw2LP6OQhEK/66zvRfubSzoUojRIBmYqhObSSKb/CIMiipNBv0q5tgVm nWDkhgJl25qD+1rso0DsKQoatyX8o3DPJhcg5Nu46+oP5qiXQAzjV+s2R7c5/ZIZZbaN BIEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pfzEBhzB; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p28-20020a056402501c00b00445fc3afc57si1621913eda.360.2022.08.18.15.05.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:05:22 -0700 (PDT) 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=pfzEBhzB; 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 07195385802B for <ouuuleilei@gmail.com>; Thu, 18 Aug 2022 22:04:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07195385802B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660860287; bh=Z4Jv5YvKZKS+tSQpKvw2hnOgUTnJSG7+rL90DJhEl7A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=pfzEBhzBBbaP7OeMPMdc7knDhtLSOC2BsDOuddRUXrUkrdy4GnfoSFdE255PMN3NZ 08mPGP6eWUY9HOT6YSBsOshx4rjefMPf9MkCCOItGEfwZW0yK1XZo5wiKd2rjbPhDd FMKejSATh8su2Ulfoq+6JmETnhfdC0ncG4iEB344= 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 E270C385828F for <gcc-patches@gcc.gnu.org>; Thu, 18 Aug 2022 22:04:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E270C385828F Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27IHpsQB001638 for <gcc-patches@gcc.gnu.org>; Thu, 18 Aug 2022 15:04:02 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3j1t6r10wm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Thu, 18 Aug 2022 15:04:02 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 18 Aug 2022 15:04:01 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 18 Aug 2022 15:04:01 -0700 Received: from linux.wrightpinski.org.com (unknown [10.69.242.198]) by maili.marvell.com (Postfix) with ESMTP id E9F5C3F7062; Thu, 18 Aug 2022 15:04:00 -0700 (PDT) To: <gcc-patches@gcc.gnu.org> Subject: [PATCH 00/10] [RISCV] Fix/improve the RISCV backend Date: Thu, 18 Aug 2022 15:03:43 -0700 Message-ID: <1660860233-11175-1-git-send-email-apinski@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: JJ3bbz9TyhxSyjYofGhp6P5tyBgX2sVi X-Proofpoint-GUID: JJ3bbz9TyhxSyjYofGhp6P5tyBgX2sVi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-18_16,2022-08-18_01,2022-06-22_01 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=no 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: apinski--- via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: apinski@marvell.com Cc: Andrew Pinski <apinski@marvell.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?1741538272952593737?= X-GMAIL-MSGID: =?utf-8?q?1741538272952593737?= |
Series |
Fix/improve the RISCV backend
|
|
Message
Li, Pan2 via Gcc-patches
Aug. 18, 2022, 10:03 p.m. UTC
From: Andrew Pinski <apinski@marvell.com>
This set of patches fixes a few RISCV issues and does a few
cleanups. Including moving all of the iterators to iterators.md like
many newer backends.
It also fixes a few PRs which I filed including the RISCV32 issue
with ZBS enabled.
Thanks,
Andrew Pinski
Andrew Pinski (10):
[RISCV] Move iterators from riscv.md to iterators.md
[RISCV] Move iterators from bitmanip.md to iterators.md
[RISCV] Move iterators from sync.md to iterators.md
[RISCV] Add the list of operand modifiers to riscv.md too
[RISCV] Add %~ to print w if TARGET_64BIT and use it
[RISCV] Use constraints/predicates instead of checking const_int
directly for shNadd patterns
[RISCV] Use a constraint for bset<mode>_mask and bset<mode>_1_mask
[RISCV] Fix PR 106586: riscv32 vs ZBS
[RISCV] Add constraints for
not_single_bit_mask_operand/single_bit_mask_operand
[RISCV] Fix PR 106632 and PR 106588 a few constraints in bitmanip.md
gcc/config/riscv/bitmanip.md | 56 ++------
gcc/config/riscv/constraints.md | 28 ++++
gcc/config/riscv/iterators.md | 245 ++++++++++++++++++++++++++++++++
gcc/config/riscv/predicates.md | 9 +-
gcc/config/riscv/riscv.cc | 35 ++++-
gcc/config/riscv/riscv.h | 4 +-
gcc/config/riscv/riscv.md | 199 +++-----------------------
gcc/config/riscv/sync.md | 4 -
8 files changed, 352 insertions(+), 228 deletions(-)
create mode 100644 gcc/config/riscv/iterators.md
Comments
On Thu, 18 Aug 2022 15:03:43 PDT (-0700), gcc-patches@gcc.gnu.org wrote: > From: Andrew Pinski <apinski@marvell.com> > > This set of patches fixes a few RISCV issues and does a few > cleanups. Including moving all of the iterators to iterators.md like > many newer backends. > It also fixes a few PRs which I filed including the RISCV32 issue > with ZBS enabled. > > Thanks, > Andrew Pinski > > Andrew Pinski (10): > [RISCV] Move iterators from riscv.md to iterators.md > [RISCV] Move iterators from bitmanip.md to iterators.md > [RISCV] Move iterators from sync.md to iterators.md > [RISCV] Add the list of operand modifiers to riscv.md too > [RISCV] Add %~ to print w if TARGET_64BIT and use it > [RISCV] Use constraints/predicates instead of checking const_int > directly for shNadd patterns > [RISCV] Use a constraint for bset<mode>_mask and bset<mode>_1_mask > [RISCV] Fix PR 106586: riscv32 vs ZBS > [RISCV] Add constraints for > not_single_bit_mask_operand/single_bit_mask_operand > [RISCV] Fix PR 106632 and PR 106588 a few constraints in bitmanip.md > > gcc/config/riscv/bitmanip.md | 56 ++------ > gcc/config/riscv/constraints.md | 28 ++++ > gcc/config/riscv/iterators.md | 245 ++++++++++++++++++++++++++++++++ > gcc/config/riscv/predicates.md | 9 +- > gcc/config/riscv/riscv.cc | 35 ++++- > gcc/config/riscv/riscv.h | 4 +- > gcc/config/riscv/riscv.md | 199 +++----------------------- > gcc/config/riscv/sync.md | 4 - > 8 files changed, 352 insertions(+), 228 deletions(-) > create mode 100644 gcc/config/riscv/iterators.md Aside from the minor issue I pointed out in my reply to 10, these all look good to me. Thanks!