Message ID | 20230210224150.2801962-10-philipp.tomsich@vrull.eu |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1213915wrn; Fri, 10 Feb 2023 14:45:26 -0800 (PST) X-Google-Smtp-Source: AK7set/7xFltJTBvdfV8agKSnfeGaUQ8hLlUED/TPseAwjHCQuGnFZKoUFdKPTJ5UhNCW46Us+19 X-Received: by 2002:a17:906:6c97:b0:8ab:9657:3152 with SMTP id s23-20020a1709066c9700b008ab96573152mr12622842ejr.15.1676069125941; Fri, 10 Feb 2023 14:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676069125; cv=none; d=google.com; s=arc-20160816; b=OudOCJklGav1HRRLyxkJfsEdmT8r2BaRvA6+a1QJUI5sbEysjNDU5XkoKnWiGRyf5+ kOprnAx/KSuloLC57OFvwiITz50zSQFWnTaMbJiQaTWtd7V0F1emamPU38udrvpF5S3v LeQ52UFyBQpFfDh0u4pWvXs8Z6TCp4cb5PoQc1GfIv4Yh1K5mhkGt4IHLJd1ODzLkSph FypU100GEHl5xoQQL/y9ut9juEItjl5AGAwRxtRma7tY16TD6eQKrWofqCMjluBOiWWR L4QBwXl3vMXpseoseQhHM0jWz9vUsBxHOKr/FrNC04GYKNUgxX9GYY2c0JwG+DEXnMMj fIJA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=d4BcXTMMaGo8ATHx2aUwkLXaxPowlSQ6bXfxaoWUx24=; b=eZqjrig/ul2g1IDJlhH7QgMG+iPEvatCL4VXdy/kg0rkBUKH7Makxs1bgCZdLD0iD7 aIccxrUtYR3DTvgi/pSNVa20L/SU2HrlofviQfC87Ii7HdLStb8jQbAQrf0/VIMGooo7 N2dQJce9ih577Ui6e7qepJGZZTayiqLWx/XpxDVnl/wfZTRYsDWuI/+AgzDR9Dd4RBou iKPcU5ZSv0CnUN7DDg0rEJ0MJ2/79pPby/pSYOjPbAryTzE1U/BoCzGCcS/9+gv2Xohl z7QCjh/sn78mgbY44BgEutj4qpGkVkUCS3NeKemkIOssrABi6iuPPc8K1hAPx5j4oWgG mrKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=nyF7yEtS; 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" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gc38-20020a1709072b2600b0088ce3b14b9fsi5652003ejc.940.2023.02.10.14.45.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 14:45:25 -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=@vrull.eu header.s=google header.b=nyF7yEtS; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5002C3948A5B for <ouuuleilei@gmail.com>; Fri, 10 Feb 2023 22:42:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 4CC033834E58 for <gcc-patches@gcc.gnu.org>; Fri, 10 Feb 2023 22:42:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4CC033834E58 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-ej1-x632.google.com with SMTP id ud5so19515594ejc.4 for <gcc-patches@gcc.gnu.org>; Fri, 10 Feb 2023 14:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d4BcXTMMaGo8ATHx2aUwkLXaxPowlSQ6bXfxaoWUx24=; b=nyF7yEtSQ4YnshSjO+tTQ63it7ewntyPh0PneS1o224QzvWEwrTKtQ4F4RCb/EuBl9 qlvGkszQ+5XpJihjAEPIbO2oIt1rqoVUX2vnp8qbvHMZu/Qkxx0OZ1zvvwFszeLTSSRk dSz5OVDtJR833bFnO3OLIzN36fUBJjGXqEJkboLRUpXRRaS83Y0JTYwUImmM9oFKi64b u/5pF9ST22gXC/SVS6GO6hbj3haGHZcAX4aIdx4aeYiV47ay0gZ2jcgxwMpKqSSyzF5H /GOndBgfqkbuWWkUcLEQfd9Mb+RiAiKQj2WBpiahokI8UINXBQ1APZjL/u4r9dkFP5K/ e5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d4BcXTMMaGo8ATHx2aUwkLXaxPowlSQ6bXfxaoWUx24=; b=vN9OxXRo8RazYQZdXF47Sk62TC5FKh5kPZrD+yCNu7KNMErnH7rAou/KVDTB0a6Foc eXdVJC+01ETunusjk9xTmssRqaAkuA0iYNl+Mq9tRfDLgDE4BlsxGH4Vd29bUmKZmLaT CZzLtWhG6pNI1COngUqUVVDHLMi+VhHRi3cLIHzcHy6MctB/bESfzy4l7qIpBGg+gDV+ Bj66jbDSLSrc+RKky675UK41hdDp1YifAmKH0OYELkCxJr87+zWhKug5k2PmUyDJgden NyBFsC/EHuaAvKQ54HZSW9tPZgCTD4fmb5FU/fBGKKG3aQSUo4s2camxcRh4nf6LCqhA 6ghQ== X-Gm-Message-State: AO0yUKW/ZDkGRVF6+TADdEE++Rq4OktoC+IitmGGF1vId1ug5pTYR5fB VG0e0csi6JfbG3Gn81A6z0/h5zQ5eXEXaysgJSk= X-Received: by 2002:a17:907:72cb:b0:8af:5750:917 with SMTP id du11-20020a17090772cb00b008af57500917mr3812752ejc.35.1676068922874; Fri, 10 Feb 2023 14:42:02 -0800 (PST) Received: from ubuntu-focal.. ([2a01:4f9:3a:1e26::2]) by smtp.gmail.com with ESMTPSA id c15-20020a17090603cf00b0088bd62b1cbbsm2976956eja.192.2023.02.10.14.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 14:42:02 -0800 (PST) From: Philipp Tomsich <philipp.tomsich@vrull.eu> To: gcc-patches@gcc.gnu.org Cc: Kito Cheng <kito.cheng@gmail.com>, Christoph Muellner <christoph.muellner@vrull.eu>, Palmer Dabbelt <palmer@rivosinc.com>, Andrew Waterman <andrew@sifive.com>, Vineet Gupta <vineetg@rivosinc.com>, Philipp Tomsich <philipp.tomsich@vrull.eu> Subject: [RFC PATCH v1 09/10] RISC-V: Recognize xventanacondops extension Date: Fri, 10 Feb 2023 23:41:49 +0100 Message-Id: <20230210224150.2801962-10-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210224150.2801962-1-philipp.tomsich@vrull.eu> References: <20230210224150.2801962-1-philipp.tomsich@vrull.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, 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?1757485859659498512?= X-GMAIL-MSGID: =?utf-8?q?1757485859659498512?= |
Series |
RISC-V: Support the Zicond (conditional-operations) extension
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Philipp Tomsich
Feb. 10, 2023, 10:41 p.m. UTC
This adds the xventanacondops extension to the option parsing and as a
default for the ventana-vt1 core:
gcc/Changelog:
* common/config/riscv/riscv-common.cc: Recognize
"xventanacondops" as part of an architecture string.
* config/riscv/riscv-opts.h (MASK_XVENTANACONDOPS): Define.
(TARGET_XVENTANACONDOPS): Define.
* config/riscv/riscv.opt: Add "riscv_xventanacondops".
Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
---
gcc/common/config/riscv/riscv-common.cc | 2 ++
gcc/config/riscv/riscv-opts.h | 3 +++
gcc/config/riscv/riscv.opt | 3 +++
3 files changed, 8 insertions(+)
Comments
On 2/10/23 15:41, Philipp Tomsich wrote: > This adds the xventanacondops extension to the option parsing and as a > default for the ventana-vt1 core: > > gcc/Changelog: > > * common/config/riscv/riscv-common.cc: Recognize > "xventanacondops" as part of an architecture string. > * config/riscv/riscv-opts.h (MASK_XVENTANACONDOPS): Define. > (TARGET_XVENTANACONDOPS): Define. > * config/riscv/riscv.opt: Add "riscv_xventanacondops". > > Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> OK jeff
I am not sure if we should accept this on gcc trunk without binutils support? On Sat, Apr 22, 2023 at 3:58 AM Jeff Law via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > > On 2/10/23 15:41, Philipp Tomsich wrote: > > This adds the xventanacondops extension to the option parsing and as a > > default for the ventana-vt1 core: > > > > gcc/Changelog: > > > > * common/config/riscv/riscv-common.cc: Recognize > > "xventanacondops" as part of an architecture string. > > * config/riscv/riscv-opts.h (MASK_XVENTANACONDOPS): Define. > > (TARGET_XVENTANACONDOPS): Define. > > * config/riscv/riscv.opt: Add "riscv_xventanacondops". > > > > Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> > OK > jeff
The binutils support is lingering on-list since Jan 2022: https://sourceware.org/pipermail/binutils/2022-January/119388.html If we get an OK on that one, we will rebase, retest, and merge it. Thanks, Philipp. On Tue, 25 Apr 2023 at 11:53, Kito Cheng <kito.cheng@gmail.com> wrote: > I am not sure if we should accept this on gcc trunk without binutils > support? > > On Sat, Apr 22, 2023 at 3:58 AM Jeff Law via Gcc-patches > <gcc-patches@gcc.gnu.org> wrote: > > > > > > > > On 2/10/23 15:41, Philipp Tomsich wrote: > > > This adds the xventanacondops extension to the option parsing and as a > > > default for the ventana-vt1 core: > > > > > > gcc/Changelog: > > > > > > * common/config/riscv/riscv-common.cc: Recognize > > > "xventanacondops" as part of an architecture string. > > > * config/riscv/riscv-opts.h (MASK_XVENTANACONDOPS): Define. > > > (TARGET_XVENTANACONDOPS): Define. > > > * config/riscv/riscv.opt: Add "riscv_xventanacondops". > > > > > > Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> > > OK > > jeff >
I am ok if binutils patch get merged into trunk Philipp Tomsich <philipp.tomsich@vrull.eu> 於 2023年4月25日 週二 18:15 寫道: > The binutils support is lingering on-list since Jan 2022: > https://sourceware.org/pipermail/binutils/2022-January/119388.html > > If we get an OK on that one, we will rebase, retest, and merge it. > > Thanks, > Philipp. > > On Tue, 25 Apr 2023 at 11:53, Kito Cheng <kito.cheng@gmail.com> wrote: > > > I am not sure if we should accept this on gcc trunk without binutils > > support? > > > > On Sat, Apr 22, 2023 at 3:58 AM Jeff Law via Gcc-patches > > <gcc-patches@gcc.gnu.org> wrote: > > > > > > > > > > > > On 2/10/23 15:41, Philipp Tomsich wrote: > > > > This adds the xventanacondops extension to the option parsing and as > a > > > > default for the ventana-vt1 core: > > > > > > > > gcc/Changelog: > > > > > > > > * common/config/riscv/riscv-common.cc: Recognize > > > > "xventanacondops" as part of an architecture string. > > > > * config/riscv/riscv-opts.h (MASK_XVENTANACONDOPS): Define. > > > > (TARGET_XVENTANACONDOPS): Define. > > > > * config/riscv/riscv.opt: Add "riscv_xventanacondops". > > > > > > > > Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu> > > > OK > > > jeff > > >
On 4/25/23 03:53, Kito Cheng wrote:
> I am not sure if we should accept this on gcc trunk without binutils support?
Let's get the binutils bits in first. I don't mind owning that review.
It just hasn't been a priority due to the gcc-13 freeze.
jeff
diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 999e1926db1..a77a04d68d9 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -1250,6 +1250,8 @@ static const riscv_ext_flag_table_t riscv_ext_flag_table[] = {"svinval", &gcc_options::x_riscv_sv_subext, MASK_SVINVAL}, {"svnapot", &gcc_options::x_riscv_sv_subext, MASK_SVNAPOT}, + {"xventanacondops", &gcc_options::x_riscv_xventanacondops, MASK_XVENTANACONDOPS}, + {NULL, NULL, 0} }; diff --git a/gcc/config/riscv/riscv-opts.h b/gcc/config/riscv/riscv-opts.h index 61d5212da20..d80e81c6c28 100644 --- a/gcc/config/riscv/riscv-opts.h +++ b/gcc/config/riscv/riscv-opts.h @@ -191,4 +191,7 @@ enum stack_protector_guard { ? 0 \ : 32 << (__builtin_popcount (riscv_zvl_flags) - 1)) +#define MASK_XVENTANACONDOPS (1 << 0) +#define TARGET_XVENTANACONDOPS ((riscv_xventanacondops & MASK_XVENTANACONDOPS) != 0) + #endif /* ! GCC_RISCV_OPTS_H */ diff --git a/gcc/config/riscv/riscv.opt b/gcc/config/riscv/riscv.opt index e78c99382cd..6ebaad43d0e 100644 --- a/gcc/config/riscv/riscv.opt +++ b/gcc/config/riscv/riscv.opt @@ -233,6 +233,9 @@ int riscv_zm_subext TargetVariable int riscv_sv_subext +TargetVariable +int riscv_xventanacondops = 0 + Enum Name(isa_spec_class) Type(enum riscv_isa_spec_class) Supported ISA specs (for use with the -misa-spec= option):