Message ID | 20220909094326.22995-1-palmer@rivosinc.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp632667wrt; Fri, 9 Sep 2022 02:44:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+EsoPIibpGQ2V6yGR6Iuq58/+22yQUURNF1U4DKUIIqYBa6aLrP1kfyVrtekx+Q2KcnQC X-Received: by 2002:a17:907:7f02:b0:73d:dffa:57b3 with SMTP id qf2-20020a1709077f0200b0073ddffa57b3mr9480107ejc.19.1662716648398; Fri, 09 Sep 2022 02:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662716648; cv=none; d=google.com; s=arc-20160816; b=zbi66ss7fL2gFplpV/ksJkwGgV31Cqg1oruYbiYLI9g6iEiBm0z9ATnQE8ypV8By9X tSqlqDM3LDmocNjocmU3wobsNd8q0RBksWE6tpOLHyR10Dxz5Dw18vbo7cQyZVPjNefO 2nRTM55Q/PWeiFlCA3zER6L/fvuhdhdzZQ0Y5Px61O5FTmbsU9YOju36s2z8ziPv3nGK 4M/hyDOdxFF457bGLercaV1kSwfJu15EiJBOIbB4DRh07+WcXWVjJiO82707rILSuc6i pyHHE3CcEmHJ5PYJFUmPvCbY2rLXqXlNL1N4/M53HzDuuaGrH+wvOu6DJjfrKKQQ0sXp gJwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:from :content-transfer-encoding:mime-version:message-id:date:subject :dkim-signature:dmarc-filter:delivered-to; bh=1lr9z06ibhTWnRrLQcbs4qgzvSZJ8dsvAt+wU2BT/wE=; b=bEge8cfxbIlXYZfa9ZpxU5YLlA0Lgy+lc+i5EfHgiAmXGuA0CRhEpnjus6X7uX4zYK XOcFeut3B6LtqCIA1waZCq6fj/ZTzTqZcgkS2lDrUvNgrKjYLzlW6i3aDiHV66WdmJtV RNl8N1BAGnISMuYaAI+LLAcjxDEslEWd5Nr8bzqAalekiYWOd5N07uALXeePhuip7PJp QWFhFFtG5TbnjKhyJFW78RZcNujSLg/u+MpBT35w4yO/PoyKKfn+a2XBFrDX+RAqJ88e XKXxJ+y6hHooYxKxWKmT6rO/utiGAhMZgos1ktApYTy5AGtJ9oSAkxH8MozyL1cfk1+2 10Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=had6+X7D; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g8-20020a170906c18800b0073dd0f15dc7si19891ejz.600.2022.09.09.02.44.08 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:44:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=had6+X7D; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D91D8385783E for <ouuuleilei@gmail.com>; Fri, 9 Sep 2022 09:44:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 1BC1638582BF for <gcc-patches@gcc.gnu.org>; Fri, 9 Sep 2022 09:43:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1BC1638582BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pj1-x1033.google.com with SMTP id z9-20020a17090a468900b001ffff693b27so1032456pjf.2 for <gcc-patches@gcc.gnu.org>; Fri, 09 Sep 2022 02:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date; bh=1lr9z06ibhTWnRrLQcbs4qgzvSZJ8dsvAt+wU2BT/wE=; b=had6+X7DwaOMvVgBBK5MsJG5NJGwivwaCJ8WxyFfmT3KnCw4dAV2rJzhQPW5V9p45S q/lvzXsW+Kjb5NE4QuEWx1G+WB7FnBMg9EW77q3ZdKfUKUoTom7fKOsazuTUYidwBWJw Dy8WxvI7HxIbC/SAeq84BZIaDnVcI1tU3W+hQj1q0+7d/wXjzJeILAFN4o7n+bPJkSOS q7ZWeaFEQCUmnndg1SzB7vg+VkPXWUXslVjrP6c9ufBruJGDz/ia/Ot2iZo1OKmig0xC KSJzb3JeamWqxUrO295mPEha3oDCB3x0YPz6paVvl6t1c7NaW4nmtKn0nSNnasgm0O8+ HMlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date; bh=1lr9z06ibhTWnRrLQcbs4qgzvSZJ8dsvAt+wU2BT/wE=; b=RXe7tg0ba0SIHs7W9z5kJ2Gwx/LW3dHS8IY5tmL/3e1ZvflVsgZA8dIhOcSQ9d43ch QQRcsnVsWQ1tcY5WfzBMIhoz7+0n0GuMn+xAqCM0idIXFywWX0y/RRSaU5Ueh+UWlHdh l6Rbn6CcDLEDh/raWUXuxdexSYYASmxMn7zamaYELQcuw+8LYERxcLDfXNe5OUgCyRqw 9T5AuB0qox5orwPVwGK0EHlpN0/H9AOBbpL8LyaNHoot5zB5YK8a4Kgyp/YHbs4u34pR ZTBjPqdNMY/P5IPhT8ivJu0rIPc80GEiSKRjXHZWUV/Tjs473Ow9GKWzxonSaWKL52+G MsOg== X-Gm-Message-State: ACgBeo0s3a26BTZgs+TKWYOLVIXPM3V5BJmNAiNpzY//rwvP8JXksrlg 46LCv6Lr10Vf3gkcqzVDz8Gcpw== X-Received: by 2002:a17:90a:9907:b0:1f5:2318:ea6d with SMTP id b7-20020a17090a990700b001f52318ea6dmr8794194pjp.163.1662716620070; Fri, 09 Sep 2022 02:43:40 -0700 (PDT) Received: from localhost ([51.52.155.79]) by smtp.gmail.com with ESMTPSA id z15-20020a17090a66cf00b0020061adf86asm7333pjl.56.2022.09.09.02.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:43:39 -0700 (PDT) Subject: [PATCH] RISC-V: Support -fexcess-precision=16 Date: Fri, 9 Sep 2022 02:43:26 -0700 Message-Id: <20220909094326.22995-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Palmer Dabbelt <palmer@rivosinc.com> To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_NUMSUBJECT, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1743484772031281333?= X-GMAIL-MSGID: =?utf-8?q?1743484772031281333?= |
Series |
RISC-V: Support -fexcess-precision=16
|
|
Commit Message
Palmer Dabbelt
Sept. 9, 2022, 9:43 a.m. UTC
This fixes f19a327077e ("Support -fexcess-precision=16 which will enable FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when backend supports _Float16.") on RISC-V targets. gcc/ChangeLog PR target/106815 * config/riscv/riscv.cc (riscv_excess_precision): Add support for EXCESS_PRECISION_TYPE_FLOAT16. --- gcc/config/riscv/riscv.cc | 1 + 1 file changed, 1 insertion(+)
Comments
LGTM, seems like you have landed now, see you soon :) On Fri, Sep 9, 2022 at 5:44 PM Palmer Dabbelt <palmer@rivosinc.com> wrote: > > This fixes f19a327077e ("Support -fexcess-precision=16 which will enable > FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when backend supports _Float16.") on > RISC-V targets. > > gcc/ChangeLog > > PR target/106815 > * config/riscv/riscv.cc (riscv_excess_precision): Add support > for EXCESS_PRECISION_TYPE_FLOAT16. > --- > gcc/config/riscv/riscv.cc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc > index 675d92c0961..9b6d3e95b1b 100644 > --- a/gcc/config/riscv/riscv.cc > +++ b/gcc/config/riscv/riscv.cc > @@ -5962,6 +5962,7 @@ riscv_excess_precision (enum excess_precision_type type) > return (TARGET_ZFH ? FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 > : FLT_EVAL_METHOD_PROMOTE_TO_FLOAT); > case EXCESS_PRECISION_TYPE_IMPLICIT: > + case EXCESS_PRECISION_TYPE_FLOAT16: > return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16; > default: > gcc_unreachable (); > -- > 2.34.1 >
On Fri, 09 Sep 2022 02:56:26 PDT (-0700), Kito Cheng wrote: > LGTM, seems like you have landed now, see you soon :) Committed. > > On Fri, Sep 9, 2022 at 5:44 PM Palmer Dabbelt <palmer@rivosinc.com> wrote: >> >> This fixes f19a327077e ("Support -fexcess-precision=16 which will enable >> FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when backend supports _Float16.") on >> RISC-V targets. >> >> gcc/ChangeLog >> >> PR target/106815 >> * config/riscv/riscv.cc (riscv_excess_precision): Add support >> for EXCESS_PRECISION_TYPE_FLOAT16. >> --- >> gcc/config/riscv/riscv.cc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc >> index 675d92c0961..9b6d3e95b1b 100644 >> --- a/gcc/config/riscv/riscv.cc >> +++ b/gcc/config/riscv/riscv.cc >> @@ -5962,6 +5962,7 @@ riscv_excess_precision (enum excess_precision_type type) >> return (TARGET_ZFH ? FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 >> : FLT_EVAL_METHOD_PROMOTE_TO_FLOAT); >> case EXCESS_PRECISION_TYPE_IMPLICIT: >> + case EXCESS_PRECISION_TYPE_FLOAT16: >> return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16; >> default: >> gcc_unreachable (); >> -- >> 2.34.1 >> To: gcc-patches@gcc.gnu.org CC: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] RISC-V: Support -fexcess-precision=16 In-Reply-To: <CA+yXCZCeULa9pUpP73UwjG0dGZDvbkFTDE8KHqVb8JiT-vpEiQ@mail.gmail.com> On Fri, 09 Sep 2022 02:56:26 PDT (-0700), gcc-patches@gcc.gnu.org wrote: > LGTM, seems like you have landed now, see you soon :) > > On Fri, Sep 9, 2022 at 5:44 PM Palmer Dabbelt <palmer@rivosinc.com> wrote: >> >> This fixes f19a327077e ("Support -fexcess-precision=16 which will enable >> FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when backend supports _Float16.") on >> RISC-V targets. >> >> gcc/ChangeLog >> >> PR target/106815 >> * config/riscv/riscv.cc (riscv_excess_precision): Add support >> for EXCESS_PRECISION_TYPE_FLOAT16. >> --- >> gcc/config/riscv/riscv.cc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc >> index 675d92c0961..9b6d3e95b1b 100644 >> --- a/gcc/config/riscv/riscv.cc >> +++ b/gcc/config/riscv/riscv.cc >> @@ -5962,6 +5962,7 @@ riscv_excess_precision (enum excess_precision_type type) >> return (TARGET_ZFH ? FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 >> : FLT_EVAL_METHOD_PROMOTE_TO_FLOAT); >> case EXCESS_PRECISION_TYPE_IMPLICIT: >> + case EXCESS_PRECISION_TYPE_FLOAT16: >> return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16; >> default: >> gcc_unreachable (); >> -- >> 2.34.1 >>
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 675d92c0961..9b6d3e95b1b 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -5962,6 +5962,7 @@ riscv_excess_precision (enum excess_precision_type type) return (TARGET_ZFH ? FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 : FLT_EVAL_METHOD_PROMOTE_TO_FLOAT); case EXCESS_PRECISION_TYPE_IMPLICIT: + case EXCESS_PRECISION_TYPE_FLOAT16: return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16; default: gcc_unreachable ();