From patchwork Wed Nov 8 13:12:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZmI6YC46L2p?= X-Patchwork-Id: 163026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp903029vqo; Wed, 8 Nov 2023 05:13:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYtnMFRCeJJLsylYE3h6Si6VDaCdDAHOMK1TgPJS33BqI+HjDlVrNJ2bGb746Ta58e6aNv X-Received: by 2002:ac8:7e95:0:b0:417:af0a:70a0 with SMTP id w21-20020ac87e95000000b00417af0a70a0mr8083500qtj.14.1699449220342; Wed, 08 Nov 2023 05:13:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699449220; cv=pass; d=google.com; s=arc-20160816; b=PNlpEvRiYg3Hms7/5Ow0h0gtOPpSfUaXVHFD12KAdPNg0JlYQO2J4BwjXnHetjet6B SvFnjfdiVnXci6rDq+kXTf4SyawmxIn1qrFbBNDRS0sTs3X3G76u6gl8vMdZOWcNwH3U fygZRmjV0Wit2eA93oB0fNlI0RfAbDjlDWMcfFnpL3eEF0a3/2pxYuxxQM3auRttqTNu fYxOXQe7ah97N10wGzWOY17xLHRyzNuEI6O0/2jRNgtcz25wDH82HF+9s8yZobnIKx+k ADTK8TDUkaoFov4ucHBIctiH6vGoy6XlbwHBWHVgxIYfsKcK1S8B6MCQ4vrmP0UnG68A CGgw== 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:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=iHl4qGvdYQIyBfblMVEged6+rtm0GXdVcFAWUfZrGR4=; fh=wGDYJ6FaGFPEAmancdbBhKNMpwp17gLD9XHzYJb9OM0=; b=EeaYyNAs5+UxcZ5K+v/FTw1jqshiFpePTx4Pf1QPP/g1iPUbdXXl4JpfjbaCfJMbPf UtJDXRLxze9Kjmbyrazs8awQQEiaC5+ybRWIYr2jCZmoHH3qcsv/HldWpRuhpcHDo7/T fospKi84OPPuJfN3NEeMcL+p8BgJvUhGzcUrlXOfUwM6xB7z+jdcpjQHZEsigtQQ4eaV w0A8O/D7Vu+h80apXDLak56G+K92UAU3cXuoPb40zMn78dXGDYWcUfzF3bEPz7j40ixn OlJIQf0cXyu8ShktnNCT14GAcvu9sWmk1z8t8+a5nKfD9V/6FxIPMAiHWkog3SQU87Xj o//w== ARC-Authentication-Results: i=2; mx.google.com; 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 b11-20020ac87fcb000000b00417fa6502a2si1388581qtk.387.2023.11.08.05.13.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 05:13:40 -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; 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 1B0F03858C2B for ; Wed, 8 Nov 2023 13:13:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by sourceware.org (Postfix) with ESMTPS id CF60638582AC for ; Wed, 8 Nov 2023 13:13:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF60638582AC Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=iscas.ac.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF60638582AC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=159.226.251.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699449197; cv=none; b=dLXTTCPRLkuF1ha+1JAC5UNGJ0hy2b5oUVqWRemlcesb/aBJbAeEN2OPDkfNJNymyeGaEwmVFOT9OZi16F7PvtzMcjsGPLaySopBWGtTU9W3cvhnFkfAPJm+QXF/5jtIVdpraSIeHFo9pKesyRxfRRV/qNAQWDuAIYbotxCUZxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699449197; c=relaxed/simple; bh=DE+i2QlRUiSffnOlwjgRjAwfN+35w4Hcw7tuAeGusXM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=km8LucqH9HAz3oCu9xCBMNVYsctEJu4mBkGEOXO68Me9e/Cfen1eyNAjb7Sn404LkUXcIM/XSfp6NQf4o87iMWrJRnkPp8dXX78jibv11o2YmQKoFqjD8ZHYCwwdspUoYLqvbKeNwATYgAKhKMDzGf95POdIjAu1wJVwyO6oui8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from superoria.. (unknown [27.19.27.8]) by APP-01 (Coremail) with SMTP id qwCowACHjx+ciEtlUQmSAw--.5444S2; Wed, 08 Nov 2023 21:09:48 +0800 (CST) From: chenyixuan@iscas.ac.cn To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, shiyulong@iscas.ac.cn, oriachiuan@gmail.com, shihua@iscas.ac.cn, jiawei@iscas.ac.cn Subject: [PATCH] minimal support for xtheadv Date: Wed, 8 Nov 2023 21:12:37 +0800 Message-ID: <20231108131237.3672914-1-chenyixuan@iscas.ac.cn> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CM-TRANSID: qwCowACHjx+ciEtlUQmSAw--.5444S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Kr18ZF4rZF1kWF1fCFy3Jwb_yoW8ZF4fpa y5G3y5A34FvF1fWrsFyr48WrW5C3Z8Wr95Xw4ku34xAr4DtrW7AF9Iy34S9w4kXF4UJrn2 kF1j9r4ayw4UK37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkS14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lw4CEc2x0rVAKj4xx MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAI cVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUeEfOUUUUU X-Originating-IP: [27.19.27.8] X-CM-SenderInfo: xfkh05pl0xt046lvutnvoduhdfq/ X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782001665902565798 X-GMAIL-MSGID: 1782001665902565798 From: XYenChi This patch is for support xtheadv. gcc/ChangeLog: 2023-11-08 Chen Yixuan * common/config/riscv/riscv-common.cc: Add xthead minimal support. gcc/config/ChangeLog: 2023-11-08 Chen Yixuan * riscv/riscv.opt: Add xthead minimal support. --- gcc/common/config/riscv/riscv-common.cc | 2 ++ gcc/config/riscv/riscv.opt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 526dbb7603b..d5ea0ee9b70 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -325,6 +325,7 @@ static const struct riscv_ext_version riscv_ext_version_table[] = {"xtheadmemidx", ISA_SPEC_CLASS_NONE, 1, 0}, {"xtheadmempair", ISA_SPEC_CLASS_NONE, 1, 0}, {"xtheadsync", ISA_SPEC_CLASS_NONE, 1, 0}, + {"xtheadv", ISA_SPEC_CLASS_NONE, 0, 7}, {"xventanacondops", ISA_SPEC_CLASS_NONE, 1, 0}, @@ -1680,6 +1681,7 @@ static const riscv_ext_flag_table_t riscv_ext_flag_table[] = {"xtheadmemidx", &gcc_options::x_riscv_xthead_subext, MASK_XTHEADMEMIDX}, {"xtheadmempair", &gcc_options::x_riscv_xthead_subext, MASK_XTHEADMEMPAIR}, {"xtheadsync", &gcc_options::x_riscv_xthead_subext, MASK_XTHEADSYNC}, + {"xtheadv", &gcc_options::x_riscv_xthead_subext, MASK_XTHEADV}, {"xventanacondops", &gcc_options::x_riscv_xventana_subext, MASK_XVENTANACONDOPS}, diff --git a/gcc/config/riscv/riscv.opt b/gcc/config/riscv/riscv.opt index 70d78151cee..2bbdf680fa2 100644 --- a/gcc/config/riscv/riscv.opt +++ b/gcc/config/riscv/riscv.opt @@ -438,6 +438,8 @@ Mask(XTHEADMEMPAIR) Var(riscv_xthead_subext) Mask(XTHEADSYNC) Var(riscv_xthead_subext) +Mask(XTHEADV) Var(riscv_xthead_subext) + TargetVariable int riscv_xventana_subext