Re: PPC64 libmvec implementation of sincos

2020-01-17 Thread Richard Biener
On Thu, Jan 16, 2020 at 4:54 PM GT wrote: > > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, January 15, 2020 3:20 PM, GT wrote: > > > ‐‐‐ Original Message ‐‐‐ > > On Thursday, January 9, 2020 8:42 AM, Richard Biener > > richard.guent...@gmail.com wrote: > > > > > As for the other qu

Re: PPC64 libmvec implementation of sincos

2020-01-16 Thread GT
‐‐‐ Original Message ‐‐‐ On Wednesday, January 15, 2020 3:20 PM, GT wrote: > ‐‐‐ Original Message ‐‐‐ > On Thursday, January 9, 2020 8:42 AM, Richard Biener > richard.guent...@gmail.com wrote: > > > As for the other question for testing you probably want to provide a > > OMP si

Re: PPC64 libmvec implementation of sincos

2020-01-15 Thread GT
‐‐‐ Original Message ‐‐‐ On Thursday, January 9, 2020 8:42 AM, Richard Biener wrote: > > As for the other question for testing you probably want to provide a > OMP simd declaration > of a function like > > _Complex double mycexpi (double); > > and make a testcase like > > void foo (_Comp

Re: PPC64 libmvec implementation of sincos

2020-01-09 Thread Richard Biener
On Sat, Dec 28, 2019 at 9:01 PM GT wrote: > > ‐‐‐ Original Message ‐‐‐ > On Monday, December 9, 2019 3:39 AM, Richard Biener > wrote: > > > > I'm modifying the code trying to get complex double accepted as a valid > > > type by the vectorizer. > > > This is the first time I'm dealing wi

Re: PPC64 libmvec implementation of sincos

2019-12-28 Thread GT
‐‐‐ Original Message ‐‐‐ On Monday, December 9, 2019 3:39 AM, Richard Biener wrote: > > I'm modifying the code trying to get complex double accepted as a valid > > type by the vectorizer. > > This is the first time I'm dealing with GCC source so I ask for some > > patience. > > Functio

Re: PPC64 libmvec implementation of sincos

2019-12-18 Thread GT
‐‐‐ Original Message ‐‐‐ On Monday, December 9, 2019 3:39 AM, Richard Biener wrote: > You don't want to do it this way but map _Complex double to a vector > of 2 * n doubles instead. > Look into get_related_vectype_for_scalar_type where it alreday has > code to "change" the > scalar type

Re: PPC64 libmvec implementation of sincos

2019-12-11 Thread GT
‐‐‐ Original Message ‐‐‐ On Monday, December 9, 2019 12:36 PM, GT wrote: > ‐‐‐ Original Message ‐‐‐ > On Monday, December 9, 2019 3:39 AM, Richard Biener > richard.guent...@gmail.com wrote: > > > > I'm modifying the code trying to get complex double accepted as a valid > > > typ

Re: PPC64 libmvec implementation of sincos

2019-12-09 Thread GT
‐‐‐ Original Message ‐‐‐ On Monday, December 9, 2019 3:39 AM, Richard Biener richard.guent...@gmail.com wrote: > > I'm modifying the code trying to get complex double accepted as a valid > > type by the vectorizer. > > This is the first time I'm dealing with GCC source so I ask for some

Re: PPC64 libmvec implementation of sincos

2019-12-09 Thread Richard Biener
On Sun, Dec 8, 2019 at 10:40 PM GT wrote: > > ‐‐‐ Original Message ‐‐‐ > On Friday, December 6, 2019 12:43 PM, Richard Biener > richard.guent...@gmail.com wrote: > > ... > ... > > > > Are we certain the change we want is to support _Complex double so that > > > cexpi is auto-vectorized? >

Re: PPC64 libmvec implementation of sincos

2019-12-08 Thread GT
‐‐‐ Original Message ‐‐‐ On Friday, December 6, 2019 12:43 PM, Richard Biener richard.guent...@gmail.com wrote: ... ... > > Are we certain the change we want is to support _Complex double so that > > cexpi is auto-vectorized? > > Looking at the resulting executable of the code with sinco

Re: PPC64 libmvec implementation of sincos

2019-12-06 Thread Richard Biener
On December 6, 2019 5:50:25 PM GMT+01:00, GT wrote: >‐‐‐ Original Message ‐‐‐ >On Friday, December 6, 2019 6:38 AM, Richard Biener > wrote: > >> On Fri, Dec 6, 2019 at 12:15 PM Jakub Jelinek ja...@redhat.com wrote: >> >> > On Fri, Dec 06, 2019 at 11:48:03AM +0100, Richard Biener wrote: >>

Re: PPC64 libmvec implementation of sincos

2019-12-06 Thread GT
‐‐‐ Original Message ‐‐‐ On Friday, December 6, 2019 6:38 AM, Richard Biener wrote: > On Fri, Dec 6, 2019 at 12:15 PM Jakub Jelinek ja...@redhat.com wrote: > > > On Fri, Dec 06, 2019 at 11:48:03AM +0100, Richard Biener wrote: > > > > > So I used > > > void sincos(double x, double *sin, d

Re: PPC64 libmvec implementation of sincos

2019-12-06 Thread Richard Biener
On Fri, Dec 6, 2019 at 12:15 PM Jakub Jelinek wrote: > > On Fri, Dec 06, 2019 at 11:48:03AM +0100, Richard Biener wrote: > > So I used > > > > void sincos(double x, double *sin, double *cos); > > _Complex double __attribute__((__simd__("notinbranch"))) > > __builtin_cexpi (double); > > While Intel

Re: PPC64 libmvec implementation of sincos

2019-12-06 Thread Jakub Jelinek
On Fri, Dec 06, 2019 at 11:48:03AM +0100, Richard Biener wrote: > So I used > > void sincos(double x, double *sin, double *cos); > _Complex double __attribute__((__simd__("notinbranch"))) > __builtin_cexpi (double); While Intel-ABI-Vector-Function-2015-v0.9.8.pdf talks about complex numbers, the

Re: PPC64 libmvec implementation of sincos

2019-12-06 Thread Richard Biener
On Thu, Dec 5, 2019 at 6:45 PM GT wrote: > > > ‐‐‐ Original Message ‐‐‐ > On Thursday, December 5, 2019 4:44 AM, Richard Biener > wrote: > > ... > ... > ... > > > > > > > I'm trying to identify the source code which needs modification but I > > > need help proceeding. > > > I am compari

Re: PPC64 libmvec implementation of sincos

2019-12-05 Thread GT
‐‐‐ Original Message ‐‐‐ On Thursday, December 5, 2019 4:44 AM, Richard Biener wrote: ... ... ... > > > > I'm trying to identify the source code which needs modification but I need > > help proceeding. > > I am comparing two compilations: The first is a simple file with a call to >

Re: PPC64 libmvec implementation of sincos

2019-12-05 Thread Richard Biener
On Wed, Dec 4, 2019 at 9:53 PM GT wrote: > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, November 27, 2019 3:19 AM, Richard Biener > wrote: > > ... > > > > Questions: > > > > > > 1. Should we aim to provide a vectorized version of __builtin_cexpi? If > > > so, it would have > > > to b

Re: PPC64 libmvec implementation of sincos

2019-12-04 Thread GT
‐‐‐ Original Message ‐‐‐ On Wednesday, November 27, 2019 3:19 AM, Richard Biener wrote: ... > > Questions: > > > > 1. Should we aim to provide a vectorized version of __builtin_cexpi? If > > so, it would have > > to be a PPC64-only vector __builtin-cexpi, right? > > > > 2. Or sho

Re: PPC64 libmvec implementation of sincos

2019-11-27 Thread Richard Biener
On Mon, Nov 25, 2019 at 5:53 PM GT wrote: > > > > > > > i wonder if gcc can auto-vectorize scalar sincos > > > calls, the vectorizer seems to want the calls to > > > have no side-effect, but attribute pure or const > > > is not appropriate for sincos (which has no return > > > value but takes writ

Re: PPC64 libmvec implementation of sincos

2019-11-25 Thread GT
> > > > i wonder if gcc can auto-vectorize scalar sincos > > calls, the vectorizer seems to want the calls to > > have no side-effect, but attribute pure or const > > is not appropriate for sincos (which has no return > > value but takes writable pointer args) > > We have __builtin_cexpi for that b

Re: PPC64 libmvec implementation of sincos

2019-09-30 Thread Richard Biener
On September 30, 2019 3:52:52 PM GMT+02:00, Szabolcs Nagy wrote: >On 27/09/2019 20:23, GT wrote: >> I am attempting to create a vector version of sincos for PPC64. >> The relevant discussion thread is on the GLIBC libc-alpha mailing >list. >> Navigate it beginning at >https://sourceware.org/ml/li

Re: PPC64 libmvec implementation of sincos

2019-09-30 Thread Szabolcs Nagy
On 30/09/2019 18:30, GT wrote: > ‐‐‐ Original Message ‐‐‐ > On Monday, September 30, 2019 9:52 AM, Szabolcs Nagy > wrote: > >> On 27/09/2019 20:23, GT wrote: >> >>> I am attempting to create a vector version of sincos for PPC64. >>> The relevant discussion thread is on the GLIBC libc-alp

Re: PPC64 libmvec implementation of sincos

2019-09-30 Thread GT
‐‐‐ Original Message ‐‐‐ On Monday, September 30, 2019 9:52 AM, Szabolcs Nagy wrote: > On 27/09/2019 20:23, GT wrote: > > > I am attempting to create a vector version of sincos for PPC64. > > The relevant discussion thread is on the GLIBC libc-alpha mailing list. > > Navigate it beginnin

Re: PPC64 libmvec implementation of sincos

2019-09-30 Thread Szabolcs Nagy
On 27/09/2019 20:23, GT wrote: > I am attempting to create a vector version of sincos for PPC64. > The relevant discussion thread is on the GLIBC libc-alpha mailing list. > Navigate it beginning at > https://sourceware.org/ml/libc-alpha/2019-09/msg00334.html > > The intention is to reuse as much