From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id DBA933856611 for ; Mon, 26 Jun 2023 21:55:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBA933856611 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1b7f68f1c9eso18009665ad.2 for ; Mon, 26 Jun 2023 14:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687816520; x=1690408520; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=RGd+YGa0cBCNXtpZeHSMsO6xbXYiCuYnpJCP8PNb2Jo=; b=hJ0sMlVWHFpxMSvXZw5Z9ZysTykj4jA591gkhxLAGYpa2Wcp9bJcljAngT/j6xFNEc dPaZnOl3yambDaJ8paLcLd+sokhlVYUNq0uyJSvoZ1zqyg59vMRIdmYcdPGu16bvVy6+ ZixkBO6yvdSkqJcGTI4T1nVd3uxpqf+i2cwevv5lMVGkeHsYd/TTjnm+4JterQWcODuy GcI7V1PJxtj/NrU5gEcOyrgkeO48EVXQDijIfw6FeFmGNyjeltEDkdm0hIjKc38evl5d pq9FGQu77sGAVMuXM3lnUgGiz7ue6gELZRmBH2G4uufj8lNf3uOkB0gd8w2c01hO1bAK dRvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687816520; x=1690408520; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RGd+YGa0cBCNXtpZeHSMsO6xbXYiCuYnpJCP8PNb2Jo=; b=d9+7NQPAoWvhNbcXD5jRPHru3wnJ+72v9eJqyN5dbiP5bvGt98ZQo8DS2NQh8NMFOa CpB8zwl0wemrKvcbYhT6lW8/XTIghvfrnAldWa8VDABLpV+jOwmlU1jZz812K4/PusHM a+nD/ZPGbGuS2rtfwLqjEqSUQsyLWVlGMG1/XwLzjAbbWGqTDe4sdp/7NnwR+80dtLzO lqwOuckflV82R4aURRlcGnAip0ffbzByS5Mu2P+710ub6X4dZ4NELQ9uL+6QliJpn263 MISptaecwaykrSw+7CGHBeRrppCOniB7GdbfwrAYLweJQ/Myba+aZ+HJqCtwdF0wr0o3 dBbA== X-Gm-Message-State: AC+VfDwNEBbe3VJzWWawVvQ/FgiFB8D+sRQCUUeCDYdJbXBJ5cPFe66I J8knVlabIpXY9mXwF06tWxrdPmGJc2Q= X-Google-Smtp-Source: ACHHUZ4Y6khg4FMuUhOXsAikQ1ZFyoz0kaw/QrF7b6VRbWylxDjJTlcakqSjuqVGLlR6jQrWvzu9zw== X-Received: by 2002:a17:903:2343:b0:1b7:ed6a:d8ac with SMTP id c3-20020a170903234300b001b7ed6ad8acmr8048200plh.56.1687816520553; Mon, 26 Jun 2023 14:55:20 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id t1-20020a170902bc4100b001b7e63cfa08sm4255772plz.293.2023.06.26.14.55.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 14:55:20 -0700 (PDT) Message-ID: <0d3411d6-bee4-db3a-a0eb-e679059f5f23@gmail.com> Date: Mon, 26 Jun 2023 15:55:18 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] RISC-V: Add autovec FP widening/narrowing. Content-Language: en-US To: Robin Dapp , gcc-patches , palmer , Kito Cheng , "juzhe.zhong@rivai.ai" References: <89b515c2-df12-156e-c116-02f711a911d5@gmail.com> From: Jeff Law In-Reply-To: <89b515c2-df12-156e-c116-02f711a911d5@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 List-Id: On 6/26/23 12:58, Robin Dapp wrote: > Hi, > > this patch adds FP widening and narrowing autovec expanders as well as > tests. Conceptually similar to integer extension/truncation, we emulate > _Float16 -> double by two vfwcvts and double -> _Float16 by two vfncvts. > > Optimizations to create widening operations will be added separately. > > Regards > Robin > > gcc/ChangeLog: > > * config/riscv/autovec.md (extend2): New > expander. > (extend2): Dito. > (trunc2): Dito. > (trunc2): Dito. > * config/riscv/vector-iterators.md: Add VQEXTF and HF to > V_QUAD_TRUNC and v_quad_trunc. It looks like you fixed the type of trunc2 to be a narrowing vector shift from just a vector shift. This isn't reflected in the ChangeLog. I wasn't aware that "Dito" was an accepted spelling. I had to look it up ;-) OK with the ChangeLog fixed. jeff