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 C4E2D382F091 for ; Fri, 20 May 2022 11:51:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C4E2D382F091 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id F07F0300089; Fri, 20 May 2022 11:51:52 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Palmer Dabbelt , Nelson Chu , Kito Cheng Cc: binutils@sourceware.org Subject: [PATCH 0/1] RISC-V: Remove RV128-only fmv instructions Date: Fri, 20 May 2022 20:51:48 +0900 Message-Id: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.2 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: Fri, 20 May 2022 11:51:59 -0000 Hello, While I'm reviewing my Zfinx-related fixes (PATCH v2), I found something different. There are two RV128-only instructions enabled on RV64! 1. fmv.x.q 2. fmv.q.x Those instructions will be RV128-only instructions that transfer 128-bit floating point values between a GPR and a FPR. As RV64 only has 64-bit general purpose registers, they should not be valid (64-bit transfer instructions, fmv.x.d and fmv.d.x are, on the other hand, valid). This patchset is simple. It just removes those instructions and makes sure that they are invalid on RV64. Tsukasa OI (1): RISC-V: Remove RV128-only fmv instructions gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d | 3 +++ gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l | 3 +++ gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s | 2 ++ include/opcode/riscv-opc.h | 6 ------ opcodes/riscv-opc.c | 2 -- 5 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.d create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.l create mode 100644 gas/testsuite/gas/riscv/fmv.x.q-rv64-fail.s base-commit: ef5d515048ba13a06815c8fccc420e6e8098da03 -- 2.34.1