On 9 October 2015 at 18:17, Richard Sandiford wrote:
> Richard Sandiford writes:
>> Christophe Lyon writes:
>>> On 8 October 2015 at 18:55, Richard Sandiford
>>> wrote:
Marc Glisse writes:
> On Mon, 5 Oct 2015, Richard Sandiford wrote:
>
>> + /* cbrt(sqrt(x)) -> pow(x,1/6).
On Fri, Oct 9, 2015 at 6:17 PM, Richard Sandiford
wrote:
> Richard Sandiford writes:
>> Christophe Lyon writes:
>>> On 8 October 2015 at 18:55, Richard Sandiford
>>> wrote:
Marc Glisse writes:
> On Mon, 5 Oct 2015, Richard Sandiford wrote:
>
>> + /* cbrt(sqrt(x)) -> pow(x,1/6
Richard Sandiford writes:
> Christophe Lyon writes:
>> On 8 October 2015 at 18:55, Richard Sandiford
>> wrote:
>>> Marc Glisse writes:
On Mon, 5 Oct 2015, Richard Sandiford wrote:
> + /* cbrt(sqrt(x)) -> pow(x,1/6). */
> + (simplify
> + (sqrts (cbrts @0))
> + (p
Christophe Lyon writes:
> On 8 October 2015 at 18:55, Richard Sandiford
> wrote:
>> Marc Glisse writes:
>>> On Mon, 5 Oct 2015, Richard Sandiford wrote:
>>>
+ /* cbrt(sqrt(x)) -> pow(x,1/6). */
+ (simplify
+ (sqrts (cbrts @0))
+ (pows @0 { build_real_truncate (type, d
On 8 October 2015 at 18:55, Richard Sandiford wrote:
> Marc Glisse writes:
>> On Mon, 5 Oct 2015, Richard Sandiford wrote:
>>
>>> + /* cbrt(sqrt(x)) -> pow(x,1/6). */
>>> + (simplify
>>> + (sqrts (cbrts @0))
>>> + (pows @0 { build_real_truncate (type, dconst<1, 6> ()); }))
>>> + /* sqrt(c
Marc Glisse writes:
> On Mon, 5 Oct 2015, Richard Sandiford wrote:
>
>> + /* cbrt(sqrt(x)) -> pow(x,1/6). */
>> + (simplify
>> + (sqrts (cbrts @0))
>> + (pows @0 { build_real_truncate (type, dconst<1, 6> ()); }))
>> + /* sqrt(cbrt(x)) -> pow(x,1/6). */
>> + (simplify
>> + (cbrts (sqrts
On Mon, 5 Oct 2015, Richard Sandiford wrote:
+ /* cbrt(sqrt(x)) -> pow(x,1/6). */
+ (simplify
+ (sqrts (cbrts @0))
+ (pows @0 { build_real_truncate (type, dconst<1, 6> ()); }))
+ /* sqrt(cbrt(x)) -> pow(x,1/6). */
+ (simplify
+ (cbrts (sqrts @0))
+ (pows @0 { build_real_truncate (t
On Mon, Oct 5, 2015 at 5:17 PM, Richard Sandiford
wrote:
> This patch moves the sqrt and cbrt simplification rules to match.pd.
> builtins.c now only does the constant folding.
>
> Bootstrapped & regression-tested on x86_64-linux-gnu. OK to install?
Ok (once prerequesites are approved).
People
This patch moves the sqrt and cbrt simplification rules to match.pd.
builtins.c now only does the constant folding.
Bootstrapped & regression-tested on x86_64-linux-gnu. OK to install?
Thanks,
Richard
gcc/
* builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
(fold_built