From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 4A1D13858C39 for ; Tue, 29 Nov 2022 02:40:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4A1D13858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 15455300089; Tue, 29 Nov 2022 02:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1669689614; bh=9vK0B3Y8Oz0scLpPtf29taP8+ddlXb1VKo8nCmuyKXc=; h=Message-ID:Date:Mime-Version:Subject:To:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qQiQZSGtMjQYK5OMKcvqbo2ghk9PraJ+u48Ay2FLww3aLd4CUP+EmVm1ettitQ/9Y qzzBttZnZPkWaZKNaT+VmDmTF5wJ/iY8AXuzTLLfiKYiEpYkVbUBwwnQKwzgUOFG4r 4wWdbqYp+Sbr/gKOaVmh2k1Z1au2xPj/KLaGPnlc= Message-ID: <70bdf9b2-4705-856e-6b35-07c152ea6b8c@irq.a4lg.com> Date: Tue, 29 Nov 2022 11:40:12 +0900 Mime-Version: 1.0 Subject: Re: [REVIEW ONLY v2 0/1] UNRATIFIED RISC-V: Add 'ZiCondOps' extension (encodings changed!) Content-Language: en-US To: Tsukasa OI , Binutils References: From: Tsukasa OI In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 List-Id: IMPORTANT NOTE: I just received an e-mail from Andrew. Considering his statements... 1. Actual encodings will change **again** and 2. The extension name is going to be 'Zicond', not 'Zicondops'. I'll submit PATCH v3 after both are reflected. Regards, Tsukasa On 2022/11/29 11:06, Tsukasa OI wrote: > *** WAIT FOR SPECIFICATION FREEZE *** > This is an implementation for unratified and not frozen RISC-V extension > and not intended to be merged for now. > The only intent to submit this patchset is to test new instructions for > your (possibly virtual) environment and early review for fast adoption > after ratification. > > > Just two hours ago, the encodings of "czero.eqz" and "czero.nez" > instructions have changed in the commit 8c5faf4c6d73. > > This PATCH v2 reflects this change. > > > This patchset adds following unratified extension to GNU Binutils: > > - 'ZiCondOps' (Integer Conditional Operations) > version 1.0 in development > > which adds 2 instructions ("czero.eqz" and "czero.nez"). > > This extension makes conditional arithmetic feature much simpler (fewer > instructions when no branches are allowed). Note that constant timing > guarantee (data-independence / certain side-channel resistance) for this > extension is being discussed and may not be guaranteed. > > > This is based on the commit 8c5faf4c6d73 of the specification document: > > > > > > Tsukasa OI (1): > UNRATIFIED RISC-V: Add 'ZiCondOps' extension > > bfd/elfxx-riscv.c | 5 +++++ > gas/testsuite/gas/riscv/zicondops-noarch.d | 3 +++ > gas/testsuite/gas/riscv/zicondops-noarch.l | 3 +++ > gas/testsuite/gas/riscv/zicondops.d | 11 +++++++++++ > gas/testsuite/gas/riscv/zicondops.s | 3 +++ > include/opcode/riscv-opc.h | 8 ++++++++ > include/opcode/riscv.h | 1 + > opcodes/riscv-opc.c | 4 ++++ > 8 files changed, 38 insertions(+) > create mode 100644 gas/testsuite/gas/riscv/zicondops-noarch.d > create mode 100644 gas/testsuite/gas/riscv/zicondops-noarch.l > create mode 100644 gas/testsuite/gas/riscv/zicondops.d > create mode 100644 gas/testsuite/gas/riscv/zicondops.s > > > base-commit: cb44f89ce977b1ab2d4063f2487950bddfb75bc7