Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-23 Thread Steve Ellcey
On Wed, 2019-01-23 at 12:50 +, Tamar Christina wrote: > Hi Steve, > > > > > Hi Steve, > > > > No we are using aarch64_be-*-* but this is the only one that popped > > up as a > > failure which is why I didn't change the others. > > But now I'm wondering why... I'll check the log file manually

RE: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-23 Thread Tamar Christina
___ > From: Steve Ellcey > Sent: Tuesday, January 22, 2019 10:34 PM > To: Tamar Christina; Richard Sandiford > Cc: gcc-patches@gcc.gnu.org; nd; christophe.l...@linaro.org > Subject: Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI > > On

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-22 Thread Tamar Christina
m: Steve Ellcey Sent: Tuesday, January 22, 2019 10:34 PM To: Tamar Christina; Richard Sandiford Cc: gcc-patches@gcc.gnu.org; nd; christophe.l...@linaro.org Subject: Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI On Mon, 2019-01-21 at 18:00 +, Tamar Christina wrote: > > &g

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-22 Thread Steve Ellcey
On Mon, 2019-01-21 at 18:00 +, Tamar Christina wrote: > > > That would need to be aarch64*-*-* to include big-endian. Fixing that here > > and in the other tests is OK under the obvious rule. > > Ah, true, I didn't look at the testcase. I tested the ILP32 case and > committed the fix for bot

RE: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-21 Thread Tamar Christina
Hi Richard, > -Original Message- > From: Richard Sandiford > Sent: Monday, January 21, 2019 16:42 > To: Tamar Christina > Cc: Steve Ellcey ; christophe.l...@linaro.org; gcc- > patc...@gcc.gnu.org; nd > Subject: Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Imple

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-21 Thread Richard Sandiford
: christophe.l...@linaro.org >> Cc: gcc-patches@gcc.gnu.org; Richard Sandiford >> >> Subject: Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI >> >> On Fri, 2019-01-18 at 15:35 +0100, Christophe Lyon wrote: >> > >> > Hi Steve, >>

RE: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-21 Thread Tamar Christina
- > From: gcc-patches-ow...@gcc.gnu.org > On Behalf Of Steve Ellcey > Sent: Friday, January 18, 2019 17:58 > To: christophe.l...@linaro.org > Cc: gcc-patches@gcc.gnu.org; Richard Sandiford > > Subject: Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI >

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-18 Thread Steve Ellcey
On Fri, 2019-01-18 at 15:35 +0100, Christophe Lyon wrote: > > Hi Steve, > > I've noticed that > FAIL: g++.dg/vect/simd-clone-7.cc -std=c++14 (test for warnings, > line 7) > (and for c++17 and c++98) > when forcing -mabi=ilp32. > > I suspect you want to skip the test in this case? > > Christop

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-18 Thread Christophe Lyon
On Thu, 17 Jan 2019 at 20:11, Steve Ellcey wrote: > > On Thu, 2019-01-17 at 09:10 +, Richard Sandiford wrote: > > > > > +static bool supported_simd_type (tree t) > > > > Missing line break after "static bool". > > Fixed. > > > > +static bool currently_supported_simd_type (tree t, tree b) > > >

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-17 Thread Steve Ellcey
On Thu, 2019-01-17 at 09:10 +, Richard Sandiford wrote: > > > +static bool supported_simd_type (tree t) > > Missing line break after "static bool". Fixed. > > +static bool currently_supported_simd_type (tree t, tree b) > > Same here. Fixed. > > + return 0; > > The return should

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-17 Thread Richard Sandiford
Steve Ellcey writes: > +/* Return true for types that could be supported as SIMD return or > + argument types. */ > + > +static bool supported_simd_type (tree t) Missing line break after "static bool". > +{ > + if (SCALAR_FLOAT_TYPE_P (t) || INTEGRAL_TYPE_P (t) || POINTER_TYPE_P (t)) > +

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-16 Thread Steve Ellcey
On Wed, 2019-01-16 at 08:50 +, Richard Sandiford wrote: > > I suggest for now we add: > > /* { dg-excess-errors "partial simd clone support" { target { aarch64*-*-* } > } } */ OK, that works. > > ...this doesn't handle explicit simdlen correctly. The vecsize_int and > vecsize_float need

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-16 Thread Richard Sandiford
Steve Ellcey writes: > Here are the failures I am getting with this patch: > > c-c++-common/gomp/pr63328.c > gcc.dg/gomp/pr87895-2.c > > These tests include another test (which passes) and the included tests > have a dg-warning check. For some reason the dg-warning in the include > is ignored Ye

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-15 Thread Steve Ellcey
Richard, Here is a new version of the patch but it is not passing the testsuite right now. I added the check for the size of the base type being the same as the size of the return or argument type and modified the error messages in some cases to make more sense. This caused some things to not ge

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-14 Thread Richard Sandiford
Steve Ellcey writes: > On Fri, 2019-01-11 at 14:45 +, Richard Sandiford wrote: >> >> > + >> > +/* Return true for types that could be supported as SIMD return or >> > + argument types. */ >> > + >> > +static bool supported_simd_type (tree t) >> > +{ >> > + return (FLOAT_TYPE_P (t) || INTE

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-11 Thread Steve Ellcey
On Fri, 2019-01-11 at 14:45 +, Richard Sandiford wrote: > > > + > > +/* Return true for types that could be supported as SIMD return or > > + argument types. */ > > + > > +static bool supported_simd_type (tree t) > > +{ > > + return (FLOAT_TYPE_P (t) || INTEGRAL_TYPE_P (t)); > > We should

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2019-01-11 Thread Richard Sandiford
Steve Ellcey writes: > Here is an updated version of the GCC patch to enable SIMD functions on > Aarch64. There are a number of changes from the last patch. > > I reduced the shared code changes, there is still one change in shared code > (omp-simd-clone.c) to call targetm.simd_clone.adjust from

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-21 Thread Jakub Jelinek
On Fri, Dec 21, 2018 at 06:01:56PM +, Steve Ellcey wrote: > Here is an update to the test part of this patch. I did not change the > actual source code part of this, just the tests, so that is all I am > including here. I removed the x86 changes that had gotten in there by > accident and used

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-21 Thread Steve Ellcey
Here is an update to the test part of this patch. I did not change the actual source code part of this, just the tests, so that is all I am including here. I removed the x86 changes that had gotten in there by accident and used relative line numbers in the warning checks instead of absolute line

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-19 Thread Steve Ellcey
On Wed, 2018-12-19 at 23:57 +0100, Jakub Jelinek wrote: > On Wed, Dec 19, 2018 at 10:10:19PM +, Steve Ellcey wrote: > > @@ -199,6 +201,7 @@ int B::f25<7> (int a, int *b, int c) > > // { dg-final { scan-assembler-times > > "_ZGVdN8vuva32u__ZN1BIiE3f25ILi7EEEiiPii:" 1 { target { i?86-*-* > > x86

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-19 Thread Jakub Jelinek
On Wed, Dec 19, 2018 at 10:10:19PM +, Steve Ellcey wrote: > @@ -199,6 +201,7 @@ int B::f25<7> (int a, int *b, int c) > // { dg-final { scan-assembler-times > "_ZGVdN8vuva32u__ZN1BIiE3f25ILi7EEEiiPii:" 1 { target { i?86-*-* x86_64-*-* } > } } } > // { dg-final { scan-assembler-times > "_ZGV

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-19 Thread Steve Ellcey
Here is an updated version of the GCC patch to enable SIMD functions on Aarch64. There are a number of changes from the last patch. I reduced the shared code changes, there is still one change in shared code (omp-simd-clone.c) to call targetm.simd_clone.adjust from expand_simd_clones but it now u

Re: [EXT] Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-12 Thread Steve Ellcey
On Wed, 2018-12-12 at 13:41 +0100, Jakub Jelinek wrote: > External Email > > --- > --- > On Wed, Dec 12, 2018 at 12:34:46PM +, Richard Sandiford wrote: > > > I considered comparing node->decl and cfun->decl to differentiate > > >

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-12 Thread Jakub Jelinek
On Wed, Dec 12, 2018 at 12:34:46PM +, Richard Sandiford wrote: > > I considered comparing node->decl and cfun->decl to differentiate > > between definitions and declarations instead of using a new argument > > but having an argument seemed cleaner and clearer. > > Yeah, agreed. I actually dis

Re: [Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-12 Thread Richard Sandiford
Steve Ellcey writes: > This is the modified version of the second of my Aarch64 SIMD ABI patches. > While implementing this functionality I found I wanted > targetm.simd_clone.adjust to be called when creating SIMD clone definitions > and also when creating SIMD clone declarations. The current >

[Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-12-11 Thread Steve Ellcey
This is the modified version of the second of my Aarch64 SIMD ABI patches. While implementing this functionality I found I wanted targetm.simd_clone.adjust to be called when creating SIMD clone definitions and also when creating SIMD clone declarations. The current implementation (used only by x86

[Patch 2/4][Aarch64] v2: Implement Aarch64 SIMD ABI

2018-11-08 Thread Steve Ellcey
This is a patch 2 to support the Aarch64 SIMD ABI [1] in GCC. It defines the TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN, TARGET_SIMD_CLONE_ADJUST, and TARGET_SIMD_CLONE_USABLE macros so that GCC can generate SIMD clones on aarch64. Steve Ellcey sell...@cavium.com 2018-11-08  Steve Ellcey