From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 5CD733858C51 for ; Wed, 18 May 2022 01:44:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5CD733858C51 Received: by mail-ej1-x629.google.com with SMTP id g6so1049742ejw.1 for ; Tue, 17 May 2022 18:44:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SUEJNlxGCEq5k5oq9UvE6mKRpMESDltTFdOJHhjSHGg=; b=jZkDClnViheGiYwTR0f7rYG8LXh73aILGbYgl9tcDSVLpySRQFKJC6imN0xx/occJw oyomE2PCa/cPrxL9yuvym3nbXeIuWzUF/cdF9xNn/5DwFGLjI+aS4pxhKP2kQbla4Rsx e/2h575U4bXeemS0DULR3JI0AiD4SETzcw+rCP7lAKJPpVDHSP+9zJ2XbB7+Du5xenEn bgo1+Riur/f13+YV7iNLLmEurr1xs55nU0/R/uh5xPyW4AIOB24Q1a1CuIuqe+FEA70x ZWaqY9jE2TbZaoRPr/ketk9+1LMwCErvJyOia+YrxhFFRw/nr30mqhT3aS+spS4S8Oe+ i8Ig== X-Gm-Message-State: AOAM531nzzIrAxD03469IY5P1ig2s+a3jWqvajAN2/F198d3mSZ382/i pNoJl0eVRQcVdGh4USjPm0lQ10qKK/EsvGJAQ5c= X-Google-Smtp-Source: ABdhPJyMC8O8QEsAUzUx9TDeEm4Kkxb3Wmjbqc4eNUjlCk3aAAThrGNKdHvQf7yPXiLBLc6VcrrlxYY8Ix+YiAFJOFI= X-Received: by 2002:a17:907:16a9:b0:6f4:f0f6:3f35 with SMTP id hc41-20020a17090716a900b006f4f0f63f35mr22554002ejc.683.1652838245899; Tue, 17 May 2022 18:44:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kito Cheng Date: Wed, 18 May 2022 09:43:54 +0800 Message-ID: Subject: Re: [RFC PATCH 0/5] RISC-V: Add Half-precision floating point extensions To: Tsukasa OI , Nelson Chu Cc: Binutils Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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: Wed, 18 May 2022 01:44:09 -0000 HI Tsukasa: Nelson has ported his zfh implementation from integration branch to trunk, did you mind base that on to adding zfhmin? On Tue, Jan 11, 2022 at 6:48 PM Tsukasa OI via Binutils wrote: > > This patchset adds support for two recently ratified RISC-V extensions: > > - Zfhmin (Half-precision floating point: conversion only) > - Zfh (Half-precision floating point: full arithmetic) > > This patchset was intended to be a part of Binutils 2.38 but I was > getting too impatient. I tested this patchset with Spike simulator and > tested that a few programs with fp16 was working nicely. However, this > patchset lacks full testsuite. > > The only reason I didn't make one was simple: all of floating point > extensions ('F', 'D' and 'Q') didn't have full testsuite. Thanks to the > fact that this patchset is too late for Binutils 2.38, we have time to > add full testsuite for all floating point extensions. > > Also, this patchset lacks pseudoinstructions (intentionally). Possible > pseudoinstructions to implement later would be: > > - fmv.h > - fneg.h > - fabs.h > > Besides that, we can begin testing 'Zfh' and 'Zfhmin' extensions with > this patchset. > > > > > Tsukasa OI (5): > RISC-V: Add 'Zfh' and 'Zfhmin' extensions > RISC-V: Add insn classes for Zfh/Zfhmin extensions > RISC-V: Add 'Zfh' and 'Zfhmin' instructions > RISC-V: Add 'flh' and 'fsh' macro instructions > RISC-V: Add 'Zfh'/'Zfhmin' conflict message > > bfd/elfxx-riscv.c | 16 +++++- > gas/config/tc-riscv.c | 10 ++++ > include/opcode/riscv-opc.h | 108 +++++++++++++++++++++++++++++++++++++ > include/opcode/riscv.h | 6 +++ > opcodes/riscv-opc.c | 62 +++++++++++++++++++++ > 5 files changed, 201 insertions(+), 1 deletion(-) > > > base-commit: 9ed5be5650ba7c315cd7cfacccc9208de2f555df > -- > 2.32.0 >