Message ID | 20240108131456.803003-1-mary.bennett@embecosm.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1009632dyq; Mon, 8 Jan 2024 05:15:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEErfZPVkEMraIAjybSsX3kpSyGn4TiIqfZ2+wrPVAMhgo1ZQxdI3ez1zJ461ulQMSP2Ghq X-Received: by 2002:a67:f64e:0:b0:467:b009:8059 with SMTP id u14-20020a67f64e000000b00467b0098059mr3250157vso.6.1704719758839; Mon, 08 Jan 2024 05:15:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704719758; cv=pass; d=google.com; s=arc-20160816; b=BnlI9+PZpBiaT3ElNV7kf2vTu2SrTZQsNhBtwo7xfHBBxAjHwnbLdfVaxgLIb+IVnG gS3FGPIX78+B75nWEJnr2Ppf7Z249ea/dlakAPSBUiExS6cSTL9aWBKa+AgZUsOUWpnT D8GGuNuW5Q7TE4vhSaqEIbSD36mD6SVS85Q7Hs35dOslLApJL+XH9DgUKFtWyOBQBo2j vsPXOsIjRtwmuzV4CV8kPBF5NJXPfi7ttwX6F0DGLI1fRk94GMTSj7KsdU1nLIOsGpNI d4xOoFtRVJQ5EFlgtdLFOef6602uCQF1Xu+Z6D306+3FcKUgJZkQ2FnknellIgfYWX8d 0eZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter:dmarc-filter:delivered-to; bh=i/tXm447xtIozGY7VDLczhjSTrzvLrbHRJfkRh2CLRQ=; fh=qiT4HZV9olO2fGAIgbF8w4l7HXh8ja5CJNGeguP7WSc=; b=DwM+XJaR+OEVZEMtNi/cg6NflP+jTr9p8NnAu8fPrtw2/A/vZqYX9WnqpIydW+IK/9 paTp11EKRFINlQ84qz8HyYrtfH3i1DaOKd2ezgBXiCfTRLetOc6oOhywRtflBuoea3WT 9NfCrzv5s+40RzgeO/tfNno5xcb5T81eQR25MZPlsnFor2uLGonsWDYHmEhxXwuCvJm7 Hi2yNrbeUlqYPuX26/An043ktZ7FIR+BlNeMF2nh5BNn48oURPKZOU1c6T0d3mjw2Wjb 1NxTnHn8JkFXxkdHM6Ev7I5w6XLE3TxZENJKKkWYH4AfTYURameNRIeh9yE6+OWnalGf kZ8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=P1C2eDdA; arc=pass (i=1); 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id r20-20020a67f454000000b0046704c8d11csi562346vsn.812.2024.01.08.05.15.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:15:58 -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=@embecosm.com header.s=google header.b=P1C2eDdA; arc=pass (i=1); 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 0A8653858C33 for <ouuuleilei@gmail.com>; Mon, 8 Jan 2024 13:15:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 03EF83858D35 for <gcc-patches@gcc.gnu.org>; Mon, 8 Jan 2024 13:15:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 03EF83858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 03EF83858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704719715; cv=none; b=aylMpGGwFNYNxRP2PHZgYNdpt8Aq4vsQ0i5VNYJOiA54vW3EtUZbCUjTwCN11lgBWFPLkT7LwZZ8Rk0AIemwjkM7Alh5tgs6eC4TW7vyztpF9t/AOiao00SN8dcxD+uqvOxffsUT8rLjSbfAUCEdC6eymjQO4+FIIqAWURmVZ0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704719715; c=relaxed/simple; bh=ALAUg4ersS/2TKRnuNiuPiSUGV0L+7gWw53RvWhOohw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ib7KpfRZrhVI6LuXH7tAg7jTIZvN0sY1CE0YzKVqA7elXsqUykdQCO5JQbkForDZxxBVDb/+ktKY4pL2poTMvgvgCw9jWjVJU0gvU7EqIf2UYrh8xYzE90shAY7S0Xqnfxg2DWCHm4VRWunwadxABVlOCIYQFqI0VOPY9Hbmmh8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e485c4948so7672205e9.0 for <gcc-patches@gcc.gnu.org>; Mon, 08 Jan 2024 05:15:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1704719711; x=1705324511; darn=gcc.gnu.org; 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=i/tXm447xtIozGY7VDLczhjSTrzvLrbHRJfkRh2CLRQ=; b=P1C2eDdA7KC4m2KkmEZLw0+x9Hw+fFZlybC76GA+jj00PbYeCqt59A6FS6OiwwEDCD ka/L1tKKjS5MmtXyuzjHrjPGFmjKzpmtS1S9eKtrmwvQl6GOSgdVSet69D9inO6Qqu5P VS8YfBfvKPgSDUitPvnDsUU5k0ZPjzO0YyUkd3IRWHw65osM7Ly2rE/S3ypnmAlcvhDz 137f0faH8ejXnrWsdpJtzV2X094EfRFqY9pl9gcFchgq8hpnx+uZvoUq9ohv4U1zrWhy dqGffqgjSUl5h1CjpHvl5Gq7rujB8hKSSN4M9QH83IRWCHzDlb0+pOhbtAhRP/d5NmkA uPaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704719711; x=1705324511; 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=i/tXm447xtIozGY7VDLczhjSTrzvLrbHRJfkRh2CLRQ=; b=o4AV2jh4NqVOEUlt/cpI8qScI/z7ScmTyu4/9/ozz/zLcDd3UHrXldUYB+fglHXhCb OtQwiINQ5gDgqzebFppf0d218Rf7XmBKq42XaRe1tT8vCugLozj/mQPGixBaazOHao0c M0QGsr8o0fzYJAdb9WyLg5oQkkUfprEFh6qg976GaA2L9UMNi2fxtA53Nbfhvu7r/+sy uahk/5imZDoEQeNdmhlZ6GNdKcq1beh5NiTV4sZlAlXQzaz+Fr3VvDJ5Mh/ZPhvKC8Kd pnC8MP+MR5FM04vlOeOcV/CJRNUbivIvbatffx11eqPMo3dFB2lCbPQ56XMo+KjXJ4c4 lx8Q== X-Gm-Message-State: AOJu0Yz+ReyIb6A4VcbRzKda4NR1/nvBtnSbkfQBzCuDCaQuQraeb5Sx V7/sjSSzvqBEZDCVcqCzwKqjVaYIEbgXWYUrFN1TVIJhgX0= X-Received: by 2002:a05:600c:1e88:b0:40e:4245:eb6f with SMTP id be8-20020a05600c1e8800b0040e4245eb6fmr1611083wmb.161.1704719710998; Mon, 08 Jan 2024 05:15:10 -0800 (PST) Received: from troughton.lym.embecosm-corp.com ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id jb17-20020a05600c54f100b0040e4a7a7ca3sm995258wmb.43.2024.01.08.05.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:15:10 -0800 (PST) From: Mary Bennett <mary.bennett@embecosm.com> To: gcc-patches@gcc.gnu.org Cc: mary.bennett@embecosm.com Subject: [PATCH v5 0/1] RISC-V: Support CORE-V XCVBI extension Date: Mon, 8 Jan 2024 13:14:55 +0000 Message-Id: <20240108131456.803003-1-mary.bennett@embecosm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231212193253.220195-4-mary.bennett@embecosm.com> References: <20231212193253.220195-4-mary.bennett@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787528224964678006 X-GMAIL-MSGID: 1787528224964678006 |
Series |
RISC-V: Support CORE-V XCVBI extension
|
|
Message
Mary Bennett
Jan. 8, 2024, 1:14 p.m. UTC
Thank you for reviewing my patches and merging XCVelw. This patch series presents the comprehensive implementation of the BI extension for CORE-V. Tested with riscv-gnu-toolchain on binutils, ld, gas and gcc testsuites to ensure its correctness and compatibility with the existing codebase. However, your input, reviews, and suggestions are invaluable in making this extension even more robust. The CORE-V builtins are described in the specification [1] and work can be found in the OpenHW group's Github repository [2]. [1] github.com/openhwgroup/core-v-sw/blob/master/specifications/corev-builtin-spec.md [2] github.com/openhwgroup/corev-gcc Contributors: Mary Bennett <mary.bennett@embecosm.com> Nandni Jamnadas <nandni.jamnadas@embecosm.com> Pietra Ferreira <pietra.ferreira@embecosm.com> Charlie Keaney Jessica Mills Craig Blackmore <craig.blackmore@embecosm.com> Simon Cook <simon.cook@embecosm.com> Jeremy Bennett <jeremy.bennett@embecosm.com> Helene Chelin <helene.chelin@embecosm.com> RISC-V: Add support for XCVbi extension in CV32E40P gcc/common/config/riscv/riscv-common.cc | 4 ++ gcc/config/riscv/constraints.md | 21 +++++--- gcc/config/riscv/corev.def | 3 ++ gcc/config/riscv/corev.md | 51 ++++++++++++++++++- gcc/config/riscv/predicates.md | 4 ++ gcc/config/riscv/riscv.md | 2 +- gcc/config/riscv/riscv.opt | 2 + gcc/doc/sourcebuild.texi | 3 ++ .../gcc.target/riscv/cv-bi-beqimm-compile-1.c | 17 +++++++ .../gcc.target/riscv/cv-bi-beqimm-compile-2.c | 48 +++++++++++++++++++ .../gcc.target/riscv/cv-bi-bneimm-compile-1.c | 17 +++++++ .../gcc.target/riscv/cv-bi-bneimm-compile-2.c | 48 +++++++++++++++++++ gcc/testsuite/lib/target-supports.exp | 13 +++++ 12 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.target/riscv/cv-bi-beqimm-compile-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/cv-bi-beqimm-compile-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/cv-bi-bneimm-compile-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/cv-bi-bneimm-compile-2.c