From patchwork Tue Sep 5 09:08:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 137493 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp1555831vqo; Tue, 5 Sep 2023 02:10:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9p24sTyLbHbk+ZeD4Mbjv7QBo49oNfNlPYi5YSDv8tY1udmHUlvGuRE+3cRoV/C/20BMU X-Received: by 2002:a17:906:74d2:b0:9a1:d1a0:41ad with SMTP id z18-20020a17090674d200b009a1d1a041admr13748550ejl.21.1693905057766; Tue, 05 Sep 2023 02:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693905057; cv=none; d=google.com; s=arc-20160816; b=wDFXeBc+czuvDlO46qHwBv4lzxZOX8KSwI6J/n5xBJqlWxkOASE5u63ma9gwHQssUQ hZaiyRUVeDMLCBhTJbfSqLBbJ2mttDjvreJTyeyG2dXdK3ytextnwq2t/Bx2kUb0t3Ll bq8LkFY/85bK/xy3qN6mY22SJIw/jFnmlYFT4ZlmjglApiKDqL8CAwBw6J9fswlqVQdD GEwtwryONyP9bJiS6cW2J2UE/gyJ6O0VPfmT0iaSoWo9UihEDp8aRNyvpzSwVNwmY3L6 Cc+rht301FnJMGKTmLYyLCNsz6GK2GjCgMkeqBKqRsDswkfdYTJBPMDHZIee+ybswga9 DPcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from: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:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=xjAIHpsr87RT+TnqyzhrAXnOgLKUNhnI/rybZNfG4lI=; fh=lMz0tc6bjmUz1Gwj2ppdH/A+guv79ykg2fc+XnZhGVU=; b=Ld1grdm7uk+KNZOXT/wf/2CJwbfoJ2Q082v+WNs2RHpQUJRg2Gf+TKhoV9hmTKFhem K0o1de60pwyuJ65wq2hyuc+hJGNmVl1J9gOTBuT0Ov177ToFLyX4U/f+fv57b3LEiLuP wDd0SQSPX/GmMtl8ufeolhgqg7r6mw/xNlmbxV2xSvlb1PxUAyt02RFsJQI2aRJsyKSO ZZXtYWe4VeEMXP/StZu/wQA3j0LC191tbwkpz2aC3R9AXS8cYOVqOTBFibSGpuhW3lRe Zj0dXU03eqYhi0n1Q55RMsc+bGVjzzvnWnV4B6dxZO9OVx9oZ1JWulTZMCvD6KySHtkd hMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VO6Gien3; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i9-20020a1709061cc900b00992d0de8760si7319550ejh.911.2023.09.05.02.10.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 02:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VO6Gien3; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F36DF3853570 for ; Tue, 5 Sep 2023 09:10:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F36DF3853570 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693905007; bh=xjAIHpsr87RT+TnqyzhrAXnOgLKUNhnI/rybZNfG4lI=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=VO6Gien3Fk4e1QAHEss/Wbc87bdEL+eg+2L8yypAgOxV9Ng0dtKC4PhwqRGJ/If0Y bG+x/a8U0GdT1p7cCriK0nS/KuZTN4WYSertYJrgiyFfvJzijIqofz9YG2fo8tf9Sb k0fF1NlcdcARVfGDwhXHPtLAslrTRs9XPBL8HG8w= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 8D59D3857721; Tue, 5 Sep 2023 09:08:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D59D3857721 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 842A7300089; Tue, 5 Sep 2023 09:08:56 +0000 (UTC) To: Tsukasa OI , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Nelson Chu , Kito Cheng Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: [PATCH v3 1/3] RISC-V: Remove RV64E conflict Date: Tue, 5 Sep 2023 09:08:35 +0000 Message-ID: <3d3c4716e1524875ae356f6d7be47e3c32f68f31.1693904909.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_MANYTO, 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Binutils From: Tsukasa OI Reply-To: Tsukasa OI Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772357713453272838 X-GMAIL-MSGID: 1776188189344388062 From: Tsukasa OI Since RV32E *and* RV64E are ratified, RV64E is no longer invalid. This commit removes a restriction that prevents making base ISA with reduced GPRs with XLEN > 32. bfd/ChangeLog: * elfxx-riscv.c (riscv_parse_check_conflicts): Remove RV64E conflict since the ratified 'E' base ISAs include RV64E. gas/ChangeLog: * testsuite/gas/riscv/march-fail-base-02.d: Removed. * testsuite/gas/riscv/march-fail-base-02.l: Removed. --- bfd/elfxx-riscv.c | 7 ------- gas/testsuite/gas/riscv/march-fail-base-02.d | 3 --- gas/testsuite/gas/riscv/march-fail-base-02.l | 2 -- 3 files changed, 12 deletions(-) delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.d delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.l diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index e642a05fe5b8..4553075735f8 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1946,13 +1946,6 @@ riscv_parse_check_conflicts (riscv_parse_subset_t *rps) int xlen = *rps->xlen; bool no_conflict = true; - if (riscv_lookup_subset (rps->subset_list, "e", &subset) - && xlen > 32) - { - rps->error_handler - (_("rv%d does not support the `e' extension"), xlen); - no_conflict = false; - } if (riscv_subset_supports (rps, "e") && riscv_subset_supports (rps, "h")) { diff --git a/gas/testsuite/gas/riscv/march-fail-base-02.d b/gas/testsuite/gas/riscv/march-fail-base-02.d deleted file mode 100644 index cfe085ab21aa..000000000000 --- a/gas/testsuite/gas/riscv/march-fail-base-02.d +++ /dev/null @@ -1,3 +0,0 @@ -#as: -march=rv64e -#source: empty.s -#error_output: march-fail-base-02.l diff --git a/gas/testsuite/gas/riscv/march-fail-base-02.l b/gas/testsuite/gas/riscv/march-fail-base-02.l deleted file mode 100644 index 52fee96af368..000000000000 --- a/gas/testsuite/gas/riscv/march-fail-base-02.l +++ /dev/null @@ -1,2 +0,0 @@ -.*Assembler messages: -.*Error: rv64 does not support the `e' extension