Message ID | cover.1669687611.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 q4csp72635wrr; Mon, 28 Nov 2022 18:07:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qTnnbzg2cK3PV931OcYU1ZayUBxRYA0QCLtEHN/br1JIImqeZocaGMseV/Plw2oStwtU5 X-Received: by 2002:a17:906:6ac1:b0:7c0:9a3:87ff with SMTP id q1-20020a1709066ac100b007c009a387ffmr6473378ejs.505.1669687630771; Mon, 28 Nov 2022 18:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669687630; cv=none; d=google.com; s=arc-20160816; b=ZdpX4RG9rkvN+Xy2379nJLUUZ3JhXHjWw0PTb/pcVUiaCQGLOILD++VYVE2JVE/DWT CoO0UcTCxDPTlWheiCzZZYVZ9MY7QSjOErBI26IimGo7hZELHGVAKvrWQX/eeSAZ/Oje HgJuJcun4vOu+9+yzs8OYYdzmnqI0TP/wOyvEednIfhcM5bHm54CB5iR9xNHGGSWq536 R6ueMlSsP0pjgjKPPQJRFBdXAgjuqtiT/L4cTpmifRVrdIAXeNRwuEDuvEqp445neOY3 pHfi2AF9wBeWawaxWSyTPfbruMl1Hv1uSWeB3yZXrGUFByfxUhGH4mcDnsJOpndzKpZ6 YgHg== 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=3MMZC0v5IiAKv8C0++M7G/zJw5bO2reis846TIiKl/U=; b=SP/K2mMhYpzZ9CmUzkvxpiUECpQ0VFTgrX83Eqgu1VyuidXnI4ihOi/fBOyoU8S2Ob yCFy+ZKfEXkHHFQxFlLNgojJDBxd5TYiXnDDt7K891/4G0utCYiahxHPKtgIPxHhU6oz WREqNY9Gr1MyX8X8444S8XFd7+bVlrQemtQkN0U3OK3BBzNpd9WdgK8kBImETC5wlGiK LL00DmUH+wzbPpp+W3mPtnpuJaQUOBonYj2W1/dk5f4AVLRKfMfbpuLrJtSjSzOtoypy /Nb7ZhST3y5qX/pMMgyNwcf+r0hrFH22xHLW/7Cxm6nHyBRwzxipaONAx0tpwm9s5j2O FqWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=rkK16jU1; 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ds11-20020a170907724b00b0073de493b83esi12335682ejc.147.2022.11.28.18.07.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 18:07:10 -0800 (PST) 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=rkK16jU1; 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 D29BC3858C83 for <ouuuleilei@gmail.com>; Tue, 29 Nov 2022 02:07:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D29BC3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669687629; bh=3MMZC0v5IiAKv8C0++M7G/zJw5bO2reis846TIiKl/U=; 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=rkK16jU1UElMRjkAzqBr5coLxk89ROroXG9R5/+IJTvdEp1b51foIFWioOxlJbGnu oZNhK8VcJPGT1cfeRkbthKRzPQMGVo/wX5S8Q6k9mNO1ucCAo2If6lqzfbk/C4s8T+ u0c1xBjrZHlv5O234hFWo18EUFrZicuQYZIEWh/0= 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 2AC663858D28 for <binutils@sourceware.org>; Tue, 29 Nov 2022 02:07:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2AC663858D28 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 8CE95300089; Tue, 29 Nov 2022 02:06:59 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Subject: [REVIEW ONLY v2 0/1] UNRATIFIED RISC-V: Add 'ZiCondOps' extension (encodings changed!) Date: Tue, 29 Nov 2022 02:06:56 +0000 Message-Id: <cover.1669687611.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1669684562.git.research_trasio@irq.a4lg.com> References: <cover.1669684562.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?1750794377033037171?= X-GMAIL-MSGID: =?utf-8?q?1750794377033037171?= |
Series |
UNRATIFIED RISC-V: Add 'ZiCondOps' extension (encodings changed!)
|
|
Message
Tsukasa OI
Nov. 29, 2022, 2:06 a.m. UTC
*** 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: <https://github.com/riscv/riscv-zicondops> 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
Comments
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: > <https://github.com/riscv/riscv-zicondops> > > > > > 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