public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Michael Meissner <meissner@linux.vnet.ibm.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: Michael Meissner <meissner@linux.vnet.ibm.com>,
	       GCC Patches <gcc-patches@gcc.gnu.org>,
	       Segher Boessenkool <segher@kernel.crashing.org>,
	       David Edelsohn <dje.gcc@gmail.com>,
	       Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Subject: Re: [PATCH, version 5a], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions
Date: Thu, 26 Oct 2017 00:04:00 -0000	[thread overview]
Message-ID: <20171025235709.GA8932@ibm-tiger.the-meissners.org> (raw)
In-Reply-To: <alpine.DEB.2.20.1710252340120.18935@digraph.polyomino.org.uk>

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

On Wed, Oct 25, 2017 at 11:41:24PM +0000, Joseph Myers wrote:
> My only comment on this version is that the documentation in cpp.texi of 
> __FP_FAST_* should be updated to mention __FP_FAST_FMAF@var{n} and 
> __FP_FAST_FMAF@var{n}X.

Here is the documentation to be added to the previoius patch.  With this
change, can I check it into the trunk (once Segher approves of the minor bit to
take out the PowerPC __builtin_{sqrtf128,fmaf128} builtins.

2017-10-25  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* doc/cpp.texi (Common Predefined Macros): Document defining
	__FP_FAST_FMAF<N> and __FP_FAST_FMAF<N>X if the back supports fma
	_Float<N> and _Float<N>X variants.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797

[-- Attachment #2: ieee128-patch48b --]
[-- Type: text/plain, Size: 1104 bytes --]

Index: gcc/doc/cpp.texi
===================================================================
--- gcc/doc/cpp.texi	(revision 254080)
+++ gcc/doc/cpp.texi	(working copy)
@@ -2366,6 +2366,21 @@ the include file @file{math.h} can defin
 @code{FP_FAST_FMA}, @code{FP_FAST_FMAF}, and @code{FP_FAST_FMAL}
 for compatibility with the 1999 C standard.
 
+@item __FP_FAST_FMAF16
+@itemx __FP_FAST_FMAF32
+@itemx __FP_FAST_FMAF64
+@itemx __FP_FAST_FMAF128
+@itemx __FP_FAST_FMAF32X
+@itemx __FP_FAST_FMAF64X
+@itemx __FP_FAST_FMAF128X
+These macros are defined with the value 1 if the backend supports the
+@code{fma} functions using the additional @code{_Float@var{n}} and
+@code{_Float@var{n}x} types that are defined in ISO/IEC TS
+18661-3:2015.  The include file @file{math.h} can define the
+@code{FP_FAST_FMAF@var{n}} and @code{FP_FAST_FMAF@var{n}x} macros if
+the user defined @code{__STDC_WANT_IEC_60559_TYPES_EXT__} before
+including @file{math.h}.
+
 @item __GCC_IEC_559
 This macro is defined to indicate the intended level of support for
 IEEE 754 (IEC 60559) floating-point arithmetic.  It expands to a

  reply	other threads:[~2017-10-25 23:57 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 21:46 [PATCH], Add support for __builtin_{sqrt,fma}f128 on PowerPC ISA 3.0 Michael Meissner
2017-09-13 22:49 ` Joseph Myers
2017-09-14 19:02   ` Michael Meissner
2017-10-19 22:15   ` [PATCH, version 2], Add support for _Float<N> and _Float<N>X sqrt, fma, fmin, fmax built-in functions Michael Meissner
2017-10-19 23:00     ` Joseph Myers
2017-10-19 23:00       ` Michael Meissner
2017-10-19 23:08         ` Joseph Myers
2017-10-24 22:40       ` [PATCH, version 3], " Michael Meissner
2017-10-24 23:13         ` Joseph Myers
2017-10-24 23:58           ` Michael Meissner
2017-10-25 19:25           ` [PATCH, version 4], " Michael Meissner
2017-10-25 20:01             ` Michael Meissner
2017-10-25 20:11             ` Joseph Myers
2017-10-25 20:31               ` Michael Meissner
2017-10-25 20:50                 ` Joseph Myers
2017-10-25 23:37                   ` [PATCH, version 5], " Michael Meissner
2017-10-25 23:56                     ` Joseph Myers
2017-10-26  0:04                       ` Michael Meissner [this message]
2017-10-26  0:17                         ` [PATCH, version 5a], " Michael Meissner
2017-10-30 16:29                           ` Joseph Myers
2017-10-30 18:05                             ` Michael Meissner
2017-10-30 18:38                               ` Joseph Myers
2017-10-30 23:06                                 ` Michael Meissner
2017-10-30 23:29                                   ` Michael Meissner
2017-10-30 23:35                                   ` Joseph Myers
2017-10-30 23:48                                     ` Michael Meissner
2017-10-31 18:04                                     ` Michael Meissner
2017-10-31 18:26                                       ` Joseph Myers
2017-10-27  2:27                         ` Segher Boessenkool
2017-09-14 14:54 ` [PATCH], Add support for __builtin_{sqrt,fma}f128 on PowerPC ISA 3.0 Segher Boessenkool
2017-09-14 22:21   ` Michael Meissner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171025235709.GA8932@ibm-tiger.the-meissners.org \
    --to=meissner@linux.vnet.ibm.com \
    --cc=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=segher@kernel.crashing.org \
    --cc=wschmidt@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).