Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-02-21 Thread Richard Sandiford via Gcc-patches
Christophe Lyon writes: > diff --git a/gcc/config/arm/arm-builtins.c b/gcc/config/arm/arm-builtins.c > index 9c645722230..dd537ec1679 100644 > --- a/gcc/config/arm/arm-builtins.c > +++ b/gcc/config/arm/arm-builtins.c > @@ -1553,11 +1553,25 @@ arm_init_simd_builtin_types (void) >tree eltype

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-02-17 Thread Christophe Lyon via Gcc-patches
Hi, On Fri, Feb 4, 2022 at 10:43 AM Richard Sandiford wrote: > Christophe Lyon writes: > > On Tue, Feb 1, 2022 at 4:42 AM Richard Sandiford < > richard.sandif...@arm.com> > > wrote: > > > >> Christophe Lyon via Gcc-patches writes: > >> > On Mon, Jan 31, 2022 at 7:01 PM Richard Sandiford via Gc

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-02-04 Thread Richard Sandiford via Gcc-patches
Richard Sandiford via Gcc-patches writes: > The main thing that makes truth vector types special is that those > types are the only ones that allow multiple elements in the same byte. > A “normal” 16-byte vector created by build_vector_type(_for_mode) > cannot be smaller than 16 bytes. Er, of cou

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-02-04 Thread Richard Sandiford via Gcc-patches
Christophe Lyon writes: > On Tue, Feb 1, 2022 at 4:42 AM Richard Sandiford > wrote: > >> Christophe Lyon via Gcc-patches writes: >> > On Mon, Jan 31, 2022 at 7:01 PM Richard Sandiford via Gcc-patches < >> > gcc-patches@gcc.gnu.org> wrote: >> > >> >> Sorry for the slow response, was out last week

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-02-02 Thread Christophe Lyon via Gcc-patches
On Tue, Feb 1, 2022 at 4:42 AM Richard Sandiford wrote: > Christophe Lyon via Gcc-patches writes: > > On Mon, Jan 31, 2022 at 7:01 PM Richard Sandiford via Gcc-patches < > > gcc-patches@gcc.gnu.org> wrote: > > > >> Sorry for the slow response, was out last week. > >> > >> Christophe Lyon via Gcc

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-31 Thread Richard Sandiford via Gcc-patches
Christophe Lyon via Gcc-patches writes: > On Mon, Jan 31, 2022 at 7:01 PM Richard Sandiford via Gcc-patches < > gcc-patches@gcc.gnu.org> wrote: > >> Sorry for the slow response, was out last week. >> >> Christophe Lyon via Gcc-patches writes: >> > diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c >> >

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-31 Thread Christophe Lyon via Gcc-patches
On Mon, Jan 31, 2022 at 7:01 PM Richard Sandiford via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > Sorry for the slow response, was out last week. > > Christophe Lyon via Gcc-patches writes: > > diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c > > index f16d320..5f559f8fd93 100644 > > --- a/gc

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-31 Thread Richard Sandiford via Gcc-patches
Sorry for the slow response, was out last week. Christophe Lyon via Gcc-patches writes: > diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c > index f16d320..5f559f8fd93 100644 > --- a/gcc/emit-rtl.c > +++ b/gcc/emit-rtl.c > @@ -6239,9 +6239,14 @@ init_emit_once (void) > >/* For BImode, 1 and

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-27 Thread Christophe Lyon via Gcc-patches
tches > > Sent: Thursday, January 13, 2022 2:56 PM > > To: gcc-patches@gcc.gnu.org > > Subject: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of > > booleans > > > > This patch implements support for vectors of booleans to support MVE > > predica

RE: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-27 Thread Kyrylo Tkachov via Gcc-patches
Hi Christophe, > -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Christophe > Lyon via Gcc-patches > Sent: Thursday, January 13, 2022 2:56 PM > To: gcc-patches@gcc.gnu.org > Subject: [PATCH v3 07/15] arm: Implement MVE

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-21 Thread Christophe Lyon via Gcc-patches
Hi Andre, On Fri, Jan 21, 2022 at 12:23 PM Andre Vieira (lists) via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > Hi Christophe, > > On 13/01/2022 14:56, Christophe Lyon via Gcc-patches wrote: > > diff --git a/gcc/config/arm/arm-simd-builtin-types.def > b/gcc/config/arm/arm-simd-builtin-types.d

Re: [PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-21 Thread Andre Vieira (lists) via Gcc-patches
Hi Christophe, On 13/01/2022 14:56, Christophe Lyon via Gcc-patches wrote: diff --git a/gcc/config/arm/arm-simd-builtin-types.def b/gcc/config/arm/arm-simd-builtin-types.def index 6ba6f211531..920c2a68e4c 100644 --- a/gcc/config/arm/arm-simd-builtin-types.def +++ b/gcc/config/arm/arm-simd-built

[PATCH v3 07/15] arm: Implement MVE predicates as vectors of booleans

2022-01-13 Thread Christophe Lyon via Gcc-patches
This patch implements support for vectors of booleans to support MVE predicates, instead of HImode. Since the ABI mandates pred16_t (aka uint16_t) to represent predicates in intrinsics prototypes, we introduce a new "predicate" type qualifier so that we can map relevant builtins HImode arguments a