From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by sourceware.org (Postfix) with ESMTPS id 977F43858436 for ; Tue, 19 Mar 2024 00:58:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 977F43858436 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 977F43858436 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710809936; cv=none; b=QOcD7m0ZX8f8ebZSPigWVCRZzjn52s0Pt4o8jcidkjvF/FhZgXQSWR3StoEEGQlz0mKl/DtN6BcMvejojMKCOdsdopyyyWeRWYSOBOfFEiPf6b+bfy6rTcqPX1tMVaFNFSS7grYe6iqYjoi6GYN41rNU29ofk2jau8Pztu2wprM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710809936; c=relaxed/simple; bh=iCuOwHqsP1xzpX1Ulw94JzCzsTSisVK6jSoDf4jeGp8=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=RDBFKlWdvwz/pLVRrbYEvj7sSDxoiitXN/XITP+IZsjZC/11AyMcckqjaOeK6yyRoXKp7SL+Xvmp1IIP5SQk66B5GgkqMgv+/K/rvsRDeY37FaYt2edYUSc5oFfQrJgx3E6yoForMNWmDfCZz95kIV4d9BdxK+9+WJRgYdnrWyM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-60a5a11b59dso55487377b3.0 for ; Mon, 18 Mar 2024 17:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710809934; x=1711414734; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=832/mK+8bWUf3LISVohqVMGRHLYkPDa3togkFbdV77Q=; b=i3G7nqOZgEYDKwQRHz8pcGYIgWsFy3rAfgTTc9H8LIOP+GGcdmP5d42JMtJYpXOntt 6IpDZ31pqCqbDLAnIB2yyDsLUZ5rsh0rCH4Icxi4QramOgIWRQs1puQKQO77HlpNXNdm qDNOs4JeKOjNcDVhm4hFiy54Ag7Fp0rSALzuukqjc4i0hbcme0uXor91Xxf/1ugv8k7x 4PatX1/cNhRRSlMxXPGwBOtm8D6Zn2Wrj9a5R+DJvwDyCcUO5e6e60HfupsyJBohLHOo yYnXp2dNQHJxmn6GZf92LNBFgBd80HHdbi1c8GmmsVkwaTgybdPrh2Y2csECXs7HTIn1 GM+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710809934; x=1711414734; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=832/mK+8bWUf3LISVohqVMGRHLYkPDa3togkFbdV77Q=; b=VGAFjdTWr9c9QaeRa5nX8tRQvXCaLBUh3QIAnN82vKe9fvyfZvOjMdk2hOl50pOabU /J7G1amh1xgtkx410c1d5FtxZEAHVOzUAkq2LVdVPrulDygEfUXy+AxX/o1wZwTcDMbl 8b8xv2kjUdLABrBPaAR9qhSPAJznURSfLIIWNbvwH3G+GxSD2zVs273RmmJFavzQWdOu En06oLFpOrW6h3n3lME/i0ycDkX3ihNI/bGfA4W4WiNeQSfB6WLVwnaOJs+T9Q98qLs4 6qiosDwIAKlqgQJSz5gHfBd1aOzHOUTN/c93Qpyq2ZQyZbt/yFjuhSyuxDaqrkNSrVwp LTVA== X-Forwarded-Encrypted: i=1; AJvYcCWoihqzj8k/+VHIqX4FXJ81DtUoVyoiwNQqtl7YNKWjvu7jfE+7Zq9gGKTgv2ucT4/4khEVN3XCHZyniqPkvNxdXEqO0ZDA0A== X-Gm-Message-State: AOJu0YwDOSpMFgvqNS684M1axNNd4z538tpsBulIWMk2Flt0vtaquYy5 JxtXdZCj3HJl1AzZdZ4fUi6Bwtfedd9SWXg8SboDcRPW6Imy8aX5cbBgFF/X/FSYPaEi8MmotL+ 09p8ba/XZ6+84HBsxbOcT6M4VGdI= X-Google-Smtp-Source: AGHT+IHXFOaSNEISGO23ux52gi840OnoJfHoeeFaqW7jG/7mOdWFC3Ui81DZHImApHYv97VRtHuG5zkmT4K1sJIlOdU= X-Received: by 2002:a5b:b85:0:b0:dc6:7e7b:4797 with SMTP id l5-20020a5b0b85000000b00dc67e7b4797mr9504963ybq.4.1710809934000; Mon, 18 Mar 2024 17:58:54 -0700 (PDT) MIME-Version: 1.0 References: <20240318105530.3556213-1-hongtao.liu@intel.com> In-Reply-To: From: Hongtao Liu Date: Tue, 19 Mar 2024 08:58:43 +0800 Message-ID: Subject: Re: [PATCH] Document -fexcess-precision=16. To: Joseph Myers Cc: liuhongt , gcc-patches@gcc.gnu.org, hjl.tools@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 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 List-Id: On Tue, Mar 19, 2024 at 12:16=E2=80=AFAM Joseph Myers = wrote: > > On Mon, 18 Mar 2024, liuhongt wrote: > > > +If @option{-fexcess-precision=3D16} is specified, casts and assignment= s of > > +@code{_Float16} and @code{bfloat16_t} cause value to be rounded to the= ir > > +semantic types if they're supported by the target. > > Isn't that option about rounding results of all operations, whether or no= t > a cast or assignment is involved? That's certainly what the brief mentio= n > of this option in extend.texi says, and fits the intent that > -fexcess-precision=3D16 corresponds to FLT_EVAL_METHOD =3D=3D 16. Yes, how about this. +If @option{-fexcess-precision=3D16} is specified, each operation of +@code{_Float16} and @code{bfloat16_t} causes value to be rounded to their +semantic types if they're supported by the target. > > -- > Joseph S. Myers > josmyers@redhat.com > --=20 BR, Hongtao