From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id CD6523858299 for ; Sun, 7 Aug 2022 08:00:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD6523858299 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id F22B0300089; Sun, 7 Aug 2022 08:00:24 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Nelson Chu , Kito Cheng , Palmer Dabbelt Cc: binutils@sourceware.org Subject: [PATCH 0/2] RISC-V: Opcode Tidying - Operands (batch 1) Date: Sun, 7 Aug 2022 17:00:20 +0900 Message-Id: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2022 08:00:29 -0000 Hello, This is a small patchset to clean / maintain RISC-V instruction operand types. [PATCH 1/2] Since `validate_riscv_insn' function lists three macro-only operand types, this patch adds other three operands. That means, `validate_riscv_insn' lists all macro-only operand types with this patch. Existing: - A - B - I New in This Patch: - c - VM - VT Note that `validate_riscv_insn' is called only for non-macros. In the future, we could reject (and make an internal error) when we encountered those macro- only operand types on regular (non-macro) instructions. [PATCH 2/2] The operand type "b" has no good reasons to keep and should be removed. - It looks like an alias of the "s" operand type. - It hasn't used since the beginning. - Its role is not clear. On the other hand, this patch keeps following unused operand types for now: - Cx : future compressed instructions? - Vf, Ve : vector AMO instructions (instructions are not upstreamed but operand types are upstreamed already) - [, ] : used by some vendors? At least, their role is clear. Thanks, Tsukasa Tsukasa OI (2): RISC-V: Add macro-only operands to validate_riscv_insn RISC-V: remove "b" operand type from disassembler gas/config/tc-riscv.c | 3 +++ opcodes/riscv-dis.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) base-commit: 9663a947c09f63f75491dd4ad2f38fb448142240 -- 2.34.1