From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by sourceware.org (Postfix) with ESMTPS id 918E03858D1E for ; Mon, 18 Mar 2024 10:55:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 918E03858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 918E03858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.12 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710759336; cv=none; b=rUk5vnUVIp/ciYFYFd9/0Ub3GU8fZbCCju7THH+UoJR88ZtRRXql28R/fQJD3VeUY6h4sktH5Ydil5olyqM6qWEB09TpdzGS8rkSwN3eBnnXtQyhBpYuF4yHxus1UYOVABNyAPV2K24KXUORB4QwLOGYfTrjyCCnq1o77+MdBdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710759336; c=relaxed/simple; bh=fOLyayjw8mPjTIpWrfIWCSXYEQGPXHdx+eGtVPZFBvY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=URFy09447xV3v0mWRPLfwPCdHferOOf+6Az+mx+vMsPSPd90B+0gkDmjjYq7QYLTymQv4gr9+ZMAGqcw44HF+d4yUkcCadPkTMVcja+pnJDeGNvMlt2PWXPtG3q34pmdV7bhVIEfGYluUvdEU+KOvYH8vKMOFxXl3WW1x+7My0U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710759334; x=1742295334; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fOLyayjw8mPjTIpWrfIWCSXYEQGPXHdx+eGtVPZFBvY=; b=a5vE6powvJ8V0yVObJdjn1InDEmSw7K+GFLYUh4qAe7UQNIl4BCU8khx ZEzZw2dEm2QQBTHRN1xBVaFeJ3Cd8oQif+orm2U2wVLXUyOHC/ogvHEpa Gc9S02p9QlggFLsc5YSQgJrfiyZLzR8XKAAo9glbcAIYjC8sdRwdfwDbJ TjqQy4vkPgOXtS4CH9ddvaes08pQh+fw8LV6BkxgthV00wgxIvtOYMNzV sW0SHdhwyWAgsv8HoYF5bnIFZIy5N3rxLjE13+SyIlE8kQ7oUUFzFM/5m 5YIdnoNJkGgX0uuKictaBGdthAb4uO0Y+nkdtqZRnHMg0C9/N6Y+4scmX g==; X-IronPort-AV: E=McAfee;i="6600,9927,11016"; a="9335936" X-IronPort-AV: E=Sophos;i="6.07,134,1708416000"; d="scan'208";a="9335936" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 03:55:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,134,1708416000"; d="scan'208";a="13404931" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmviesa009.fm.intel.com with ESMTP; 18 Mar 2024 03:55:31 -0700 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 59E91100568D; Mon, 18 Mar 2024 18:55:30 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH] Document -fexcess-precision=16. Date: Mon, 18 Mar 2024 18:55:30 +0800 Message-Id: <20240318105530.3556213-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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: Ok for trunk? gcc/ChangeLog: * doc/invoke.texi: Document -fexcess-precision=16. --- gcc/doc/invoke.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 85c938d4a14..673420fdd3e 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -14930,6 +14930,9 @@ assignments). This option is enabled by default for C or C++ if a strict conformance option such as @option{-std=c99} or @option{-std=c++17} is used. @option{-ffast-math} enables @option{-fexcess-precision=fast} by default regardless of whether a strict conformance option is used. +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. @opindex mfpmath @option{-fexcess-precision=standard} is not implemented for languages -- 2.31.1