From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 2F2173858C78 for ; Mon, 18 Mar 2024 16:16:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F2173858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2F2173858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710778617; cv=none; b=oqQkOC+o785LHYbgEImHuKY3PA0L+7AOJ3RbNhitw/yiX8uv2UzplfRiHiT6oGrnu9GGzKu8Jwc2AGxEVdCiijTjCmZXfHz7JbkTNp7KwLVYZzssD7fwjevxSHCV1vJpER7pW+4jbZ3a4wzO8lN5sTwFHib3IHzXDhBqErnflqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710778617; c=relaxed/simple; bh=2GH56IjQlF1dA6vD14mSZoS1T0aO/iMQ+lTSRedrWZM=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=sQSpIdzQR+89awFcpzJlPFDk3rPza33sDNzH4q3T42JCT6iQpH5tMhJWF1/ta6hnC+RNjl7PYyGHOIlG6hFg397g8urh1RayKV/H6ZuNmnxk4I+9NX64oohcQReT9WKjTq8dULv7eDU3dOdLNBG0BKRmnDkWMzgeProKf4e1czw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710778615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RZJv1MdZeNlg1+vaUQE72aHVWXz5rICAE6Xu8/Y6nPM=; b=XmpsThsy/AmyL86gv5r7sgZlaoYw3Jh6Gx856suj24fYbsA6tdK4cE1mhHAOFIr4uygTXC Z2NJ1hIijdqtlTchBnDGoeYjrRVWBw+OVKwn+d/TrX7/So21dMUYQcMtRc+LckP6gxctda COhE9Wa7mibEmdZTwv87kvngWFPXwHM= Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-21-c37vkVV4Me2mfR8OL_RkxA-1; Mon, 18 Mar 2024 12:16:54 -0400 X-MC-Unique: c37vkVV4Me2mfR8OL_RkxA-1 Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-2219ad32ab9so5303365fac.0 for ; Mon, 18 Mar 2024 09:16:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710778613; x=1711383413; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RZJv1MdZeNlg1+vaUQE72aHVWXz5rICAE6Xu8/Y6nPM=; b=ACYsUwx7uuWYhJWCVx6Zl4nJ88J7bzoUS29614SCHot4tQLifIJ/5Zd4MJM3a4Hkhb KA5/N9vuFdKZrPKmzTqmPP+UQpu3OfMPCyR48PWvS1GwzyraHG2abNr27+DGwXkcAVLd t2/mJRohhGT6ionAiNMhhB/Omz9Wa3MKPRUAe5sa9xRdyEgigG7r6wsdHehbTFsrjsAl iUyCxI1Qie4CCPFZ2RqHXc2TvAT0oAYgcAf9NEIBL69cHErf87PLbfOOPEmbvc1kuiuT WwoT0//DeEfn/MfzSbPKmWNCoUikEL4YcX5Ik7vaA5UkBghZL0u6U7RoX89KnTuflJuL Ls4A== X-Gm-Message-State: AOJu0Yw8FDrgRqUOJuT6KDNQJ1LDA/YBc1oBKqMOhGW+f7Du9zAzHJbR w6rWseR3cMO2l9Nxnj7fro5lIpvkxtRHfmJQTCtf4GX37Dr+/vo9Rq/6V3bDRaZnu6sNnmyYtRA CkdjGHJ4n8kUsY/k1tpoJYs+uvdnOcqcg3/Ih7xIDll8SoUNrgIoQ4us= X-Received: by 2002:a05:6871:d042:b0:220:6edc:1fd7 with SMTP id mv2-20020a056871d04200b002206edc1fd7mr12913112oac.1.1710778613608; Mon, 18 Mar 2024 09:16:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXKydbGI8x4J8/m56Nsi6rH3nAdQVvU9PUFPXxKBEVVGW/SpjPoUcRnbnmhmDO2vFOJiHgkQ== X-Received: by 2002:a05:6871:d042:b0:220:6edc:1fd7 with SMTP id mv2-20020a056871d04200b002206edc1fd7mr12913093oac.1.1710778613287; Mon, 18 Mar 2024 09:16:53 -0700 (PDT) Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [2001:8b0:bf73:93f7::51bb:e332]) by smtp.gmail.com with ESMTPSA id o7-20020a056a001b4700b006e6c5cbfff7sm8114760pfv.169.2024.03.18.09.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 09:16:52 -0700 (PDT) Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.95) (envelope-from ) id 1rmFeq-008IT4-G3; Mon, 18 Mar 2024 16:16:16 +0000 Date: Mon, 18 Mar 2024 16:16:16 +0000 (UTC) From: Joseph Myers To: liuhongt cc: gcc-patches@gcc.gnu.org, crazylht@gmail.com, hjl.tools@gmail.com Subject: Re: [PATCH] Document -fexcess-precision=16. In-Reply-To: <20240318105530.3556213-1-hongtao.liu@intel.com> Message-ID: References: <20240318105530.3556213-1-hongtao.liu@intel.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 18 Mar 2024, liuhongt wrote: > +If @option{-fexcess-precision=16} is specified, casts and assignments of > +@code{_Float16} and @code{bfloat16_t} cause value to be rounded to their > +semantic types if they're supported by the target. Isn't that option about rounding results of all operations, whether or not a cast or assignment is involved? That's certainly what the brief mention of this option in extend.texi says, and fits the intent that -fexcess-precision=16 corresponds to FLT_EVAL_METHOD == 16. -- Joseph S. Myers josmyers@redhat.com