public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Evandro Menezes <e.menezes@samsung.com>
To: James Greenhalgh <james.greenhalgh@arm.com>
Cc: Kyrill Tkachov <kyrylo.tkachov@arm.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>,
	Marcus Shawcroft <Marcus.Shawcroft@arm.com>,
	Andrew Pinski <pinskia@gmail.com>,
	Benedikt Huber <benedikt.huber@theobroma-systems.com>,
	philipp.tomsich@theobroma-systems.com
Subject: Re: [AArch64] Emit square root using the Newton series
Date: Fri, 26 Feb 2016 23:46:00 -0000	[thread overview]
Message-ID: <56D0E3D1.9070106@samsung.com> (raw)
In-Reply-To: <56D0E2F2.6080901@samsung.com>

On 02/26/16 17:42, Evandro Menezes wrote:
> On 02/26/16 08:59, James Greenhalgh wrote:
>> On Mon, Feb 22, 2016 at 06:50:44PM -0600, Evandro Menezes wrote:
>>> In preparation for the patch adding the Newton series also for
>>> square root, I'd like to propose this patch changing the name of the
>>> existing tuning flag for the reciprocal square root.
>> This is fine, other names like sw_rsqrt, expand_rsqrt, nr_rsqrt would 
>> also
>> be OK. Pick your favourite!
>>
>> One comment on the replacement invoke.texi text below, otherwise this is
>> OK to apply now.
>>
>>> diff --git a/gcc/config/aarch64/aarch64.opt 
>>> b/gcc/config/aarch64/aarch64.opt
>>> index 5cbd4cd..155d2bd 100644
>>> --- a/gcc/config/aarch64/aarch64.opt
>>> +++ b/gcc/config/aarch64/aarch64.opt
>>> @@ -151,5 +151,5 @@ PC relative literal loads.
>>>     mlow-precision-recip-sqrt
>>>   Common Var(flag_mrecip_low_precision_sqrt) Optimization
>>> -When calculating a sqrt approximation, run fewer steps.
>>> +Calculate the reciprocal square-root approximation in fewer steps.
>>>   This reduces precision, but can result in faster computation.
>>> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
>>> index 490df93..eeff24d 100644
>>> --- a/gcc/doc/invoke.texi
>>> +++ b/gcc/doc/invoke.texi
>>> @@ -12879,12 +12879,10 @@ corresponding flag to the linker.
>>>   @item -mno-low-precision-recip-sqrt
>>>   @opindex -mlow-precision-recip-sqrt
>>>   @opindex -mno-low-precision-recip-sqrt
>>> -The square root estimate uses two steps instead of three for 
>>> double-precision,
>>> -and one step instead of two for single-precision.
>>> -Thus reducing latency and precision.
>>> -This is only relevant if @option{-ffast-math} activates
>>> -reciprocal square root estimate instructions.
>>> -Which in turn depends on the target processor.
>>> +The reciprocal square root approximation uses one step less than 
>>> otherwise,
>>> +thus reducing latency and precision.
>> When calculating the reciprocal square root approximation, use one less
>> step than otherwise, thus reducing latency and precision.
>>
>
> Checked in as r233772.

But not without some log hiccups, sorry...

-- 
Evandro Menezes

  reply	other threads:[~2016-02-26 23:46 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 21:35 Evandro Menezes
2015-12-09 14:05 ` Marcus Shawcroft
2015-12-09 16:31   ` Evandro Menezes
2015-12-09 16:52 ` Kyrill Tkachov
2015-12-09 16:59   ` Evandro Menezes
2015-12-09 17:03     ` Kyrill Tkachov
2015-12-09 17:16       ` Kyrill Tkachov
2015-12-09 18:50         ` Evandro Menezes
2015-12-10 10:30           ` Kyrill Tkachov
2016-02-23  0:50             ` Evandro Menezes
2016-02-26 15:00               ` James Greenhalgh
2016-02-26 23:42                 ` Evandro Menezes
2016-02-26 23:46                   ` Evandro Menezes [this message]
2016-02-16 20:56 ` Evandro Menezes
2016-03-04  0:22   ` Evandro Menezes
2016-03-08 22:08     ` Evandro Menezes
2016-03-08 22:18       ` Evandro Menezes
2016-03-08 22:20         ` Evandro Menezes
2016-03-16 19:45       ` Evandro Menezes
2016-03-17 14:55         ` James Greenhalgh
2016-03-17 16:25           ` Evandro Menezes
     [not found] <AM3PR08MB00886499882773F3C8B9F71D83B30@AM3PR08MB0088.eurprd08.prod.outlook.com>
     [not found] ` <011d01d17a26$31b3ade0$951b09a0$@samsung.com>
2016-03-10 16:52   ` Wilco Dijkstra
2016-03-10 16:58     ` Evandro Menezes
2016-03-10 19:10       ` Wilco Dijkstra
2016-03-10 22:15         ` Evandro Menezes
2016-03-11  1:06           ` Wilco Dijkstra
2016-03-14 16:39             ` Evandro Menezes
2016-03-14 19:13               ` Wilco Dijkstra
2016-03-16 21:44             ` Evandro Menezes
2016-03-17 22:50 Evandro Menezes
2016-03-24 20:30 ` [AArch64] " Evandro Menezes
2016-04-01 22:45   ` Evandro Menezes
2016-04-04 16:32     ` Evandro Menezes
     [not found]       ` <DB3PR08MB008902F0F0AFA3B1F1C91511839E0@DB3PR08MB0089.eurprd08.prod.outlook.com>
2016-04-05 22:30         ` Evandro Menezes
2016-04-12 18:15           ` Evandro Menezes
2016-04-21 18:44             ` Evandro Menezes
2016-04-27 14:24             ` James Greenhalgh
2016-04-27 15:45               ` Evandro Menezes

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=56D0E3D1.9070106@samsung.com \
    --to=e.menezes@samsung.com \
    --cc=Marcus.Shawcroft@arm.com \
    --cc=benedikt.huber@theobroma-systems.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=james.greenhalgh@arm.com \
    --cc=kyrylo.tkachov@arm.com \
    --cc=philipp.tomsich@theobroma-systems.com \
    --cc=pinskia@gmail.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).