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 6ADB53858C54 for ; Thu, 1 Dec 2022 03:20:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6ADB53858C54 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 D9609300089; Thu, 1 Dec 2022 03:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1669864838; bh=afqxmIrmqqiU35myP4q13jRY41S2yWwqQGEiNGE5U+k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=MFo+DN6ojhSu8MiY6Oc5K2VjADf00huZhKkoNautQvWFrHCg9a+zq+x6fj7vANcoh qAfWz6I8lePU7Jwk0uasvNoK2vwh6UHl4ptajjh0DAD96yBFHdz43OeJIEk5O72vKP sDE51vCu2KYjcZhpeDipgkp60iqw63CA/gmGCs8Y= From: Tsukasa OI To: Tsukasa OI Cc: binutils@sourceware.org Subject: [REVIEW ONLY v3 0/1] UNRATIFIED RISC-V: Add 'ZiCond' extension Date: Thu, 1 Dec 2022 03:20:30 +0000 Message-Id: In-Reply-To: References: 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 List-Id: *** 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. PATCH v3 reflects recent change of the extension name (from 'ZiCondOps' to 'ZiCond') and encoding (all v1, v2 and v3 has different encodings). This patchset adds following unratified extension to GNU Binutils: - 'ZiCond' (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 394e24376939 of the specification document: Tsukasa OI (1): UNRATIFIED RISC-V: Add 'ZiCond' extension bfd/elfxx-riscv.c | 5 +++++ gas/testsuite/gas/riscv/zicond-noarch.d | 3 +++ gas/testsuite/gas/riscv/zicond-noarch.l | 3 +++ gas/testsuite/gas/riscv/zicond.d | 11 +++++++++++ gas/testsuite/gas/riscv/zicond.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/zicond-noarch.d create mode 100644 gas/testsuite/gas/riscv/zicond-noarch.l create mode 100644 gas/testsuite/gas/riscv/zicond.d create mode 100644 gas/testsuite/gas/riscv/zicond.s base-commit: 8a1c55cdfb2d17208cacfc6c34af4693d6956693 -- 2.38.1