Message ID | cover.1668737241.git.research_trasio@irq.a4lg.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp732962wrr; Thu, 17 Nov 2022 18:08:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf69ffzZz3/n31Ys1WIMKPnnu+WYfuRiwmDeKOhuhEoab0PxzdCXCnSQdUWqIzg4YwQ3XnmZ X-Received: by 2002:a17:906:7f17:b0:78d:acf7:86a1 with SMTP id d23-20020a1709067f1700b0078dacf786a1mr4482409ejr.21.1668737291558; Thu, 17 Nov 2022 18:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668737291; cv=none; d=google.com; s=arc-20160816; b=Jk6NXi2CABUR5DCRDtSJiWyaznaVw9ZrXVbkWhjx4j3NJvZ8k2QUDAikIRCIXZqehA tRQ++LHAJQpw++wem11jx0f73IObrFtdyskZEDj+ABKYak8m54ATh1RLQK9Hf/9I9reA 5WZBaECni8qNBahdgnickiUJmaIl5Q4AYAhWzhIUHz1YKXfWWk9eCdSzxiawyS7vjag7 HjNltx3cXNGlBsoBkPqfGuGGA7zAJDseIXJQvlOa8IxZV+V5VFx8olvx3bno1Gc98ZH2 oIW1b+i/2cKArWYEDq7OrGm53MWqxeIGGTI53KT4U7pwmdwidNppOvmKeyLGCb1hIw+A TbCg== 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=6r0Jlg6jajqb4sbsLDGdLMGoQvXFfBYQMOVbJeVCzXs=; b=r9iLLRjGRWPyiHL2Bgtzl1X1yGQAaGTPzSkV/pusCN+lbW4b2a2OA4A0GNy1VoqZd8 7aTOIKqmXs1yAf3ZBQplTSO6oMsBTsFVYAgo1WMqLNJ/IDwfTlYA2uyvEH4DPgry8j6N XGCSt5YmcRlYQbcmLSsB4dlfSbTh48YAluOsxmS015wlRQjOsBE+wT7kq6z1ETtSpBt/ cGR6JAe4ineSlAlb+iqecNlac/GcOgzzdIKnajdguneqgxbQzw1ySuu+c2CDpoCg0WRR F5M4Ld7dKnaXp8NUWd1vnn//VPfUeJPSuIoJ0KdwRxbi+H+zPamOcCJvUKhAnwZsBhMW SUHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=m3LYD4v5; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m14-20020a056402510e00b004615b657cbcsi2418610edd.190.2022.11.17.18.08.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 18:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=m3LYD4v5; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 58157385222C for <ouuuleilei@gmail.com>; Fri, 18 Nov 2022 02:08:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58157385222C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668737290; bh=6r0Jlg6jajqb4sbsLDGdLMGoQvXFfBYQMOVbJeVCzXs=; 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=m3LYD4v5rSgcFpdB8Nbrh8LKz/kMbK8xE9n8UA3zntwlR1J0uQKjJbVYHALvx6KnS W41hYYAqhpPwPZDfr1J+Dnp+va2igA79l2+bd3Ms797mWm66x4gEN8eVa7igxfZiOa 3m/cQOQwPRLnVDSZLvkcaC5fjcyH2zPFS8A/EXFE= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 15F143853D6E for <binutils@sourceware.org>; Fri, 18 Nov 2022 02:08:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 15F143853D6E Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 22E43300089; Fri, 18 Nov 2022 02:07:57 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Nelson Chu <nelson@rivosinc.com>, Kito Cheng <kito.cheng@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com> Cc: binutils@sourceware.org Subject: [PATCH v4 0/8] RISC-V: Various opcode tidying (batch 1) Date: Fri, 18 Nov 2022 02:07:47 +0000 Message-Id: <cover.1668737241.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1668486687.git.research_trasio@irq.a4lg.com> References: <cover.1668486687.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747121750397381245?= X-GMAIL-MSGID: =?utf-8?q?1749797873936848484?= |
Series |
RISC-V: Various opcode tidying (batch 1)
|
|
Message
Tsukasa OI
Nov. 18, 2022, 2:07 a.m. UTC
PATCH v1: <https://sourceware.org/pipermail/binutils/2022-July/121691.html> PATCH v2: <https://sourceware.org/pipermail/binutils/2022-October/123707.html> PATCH v3: <https://sourceware.org/pipermail/binutils/2022-November/124369.html> [Changes: v3 -> v4] - (Mainly related to PATCH 1/8) Rebase to track commit 4a3bc79bf4c ("RISC-V: Add T-Head Fmv vendor extension") and 01804a098de ("RISC-V: Add T-Head Int vendor extension"). - PATCH 3/8 Remove some extra spaces around ("|") I forgot to remove. [Changes: v2 -> v3] - Rebase to resolve conflict with commit a8d181c0fdae ("RISC-V: xtheadfmemidx: Use fp register in mnemonics"). This e-mail is followed by the same cover letter as v2. ============= Hello, This patchset contains various tidying of RISC-V opcodes that would... (a) Make coding style more consistent and/or more readable (b) Remove unused constants (c) Make new instruction names primary (clean old names except aliases) (d) Make opcode entries functionally consistent. I call this "batch 1" and deals with the most obvious (yet small and various) issues. [Overview of this Patchset] PATCH 1/8: (a) Tidying (add space at the tail of pinfo) PATCH 2/8: (a) Tidying (fix obvious misalignments on 'Zbb'/'Zba') PATCH 3/8: (a) Tidying (remove spaces around "|" operator) PATCH 4/8: (b) Remove unused instruction macros PATCH 5/8: (c) SCALL -> ECALL, SBREAK -> EBREAK (RISC-V ISA v2.1) PATCH 6/8: (c) FMV.S.X -> FMV.W.X, FMV.X.S -> FMV.X.W (RISC-V ISA v2.2) PATCH 7/8: (c) Make old instruction names aliases PATCH 8/8: (d) Use defined (and named) constants for instruction defining Thanks, Tsukasa Tsukasa OI (8): RISC-V: Add a space at the end of pinfo RISC-V: Fix obvious misalignments ('Zbb'/'Zba') RISC-V: Remove spaces in opcode entries RISC-V: Remove unused instruction macros RISC-V: Complete tidying up with SCALL and SBREAK RISC-V: Tidying up with fmv.w.x and fmv.x.w RISC-V: Make alias instructions aliases RISC-V: Use defined mask and match values include/opcode/riscv-opc.h | 47 +-- opcodes/riscv-opc.c | 718 ++++++++++++++++++------------------- 2 files changed, 365 insertions(+), 400 deletions(-) base-commit: 9c93bc90d577ac191ec94503e04cdcf87a3d2a1a