Message ID | 20220909094326.22995-1-palmer@rivosinc.com |
---|---|
State | Committed |
Commit | 75c0899493cd84e64bd30210e848d0d1e9979494 |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67FD3385736B for <patchwork@sourceware.org>; Fri, 9 Sep 2022 09:43:58 +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-Google-Smtp-Source: AA6agR6kkCpFaH/VdOC7LotaSR1+GM2QgNe6qeur0cisi1ksrkf4BzNftv19/6QqtYnw64ERJ0Nmtg== 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
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 ();