This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimise the fpclassify builtin to perform integer operations when possible
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Tamar Christina <Tamar dot Christina at arm dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "rguenther at suse dot de" <rguenther at suse dot de>, Jeff Law <law at redhat dot com>, nd <nd at arm dot com>
- Date: Tue, 13 Sep 2016 16:08:21 +0000
- Subject: Re: [PATCH] Optimise the fpclassify builtin to perform integer operations when possible
- Authentication-results: sourceware.org; auth=none
- References: <AM5PR0802MB26105942D326EACDEFCC706B83FE0@AM5PR0802MB2610.eurprd08.prod.outlook.com>
On Tue, 13 Sep 2016, Wilco Dijkstra wrote:
> I would suggest someone with access to a machine with slow FP moves (POWER?)
> to benchmark this using the fpclassify test (glibc/benchtests/bench-math-inlines.c)
> so we know for sure.
And if for some operations on some architectures the floating-point
version is faster, that just means we need a hook to choose between them
(in the default -fno-signaling-nans case, since -fsignaling-nans should
always use the integer version).
--
Joseph S. Myers
joseph@codesourcery.com