> -----Original Message----- > From: Christophe Lyon <christophe.l...@arm.com> > Sent: Tuesday, April 18, 2023 2:46 PM > To: gcc-patches@gcc.gnu.org; Kyrylo Tkachov <kyrylo.tkac...@arm.com>; > Richard Earnshaw <richard.earns...@arm.com>; Richard Sandiford > <richard.sandif...@arm.com> > Cc: Christophe Lyon <christophe.l...@arm.com> > Subject: [PATCH 15/22] arm: [MVE intrinsics] add create shape > > This patch adds the create shape description. > Ok. Thanks, Kyrill > 2022-09-08 Christophe Lyon <christophe.l...@arm.com> > > gcc/ > * config/arm/arm-mve-builtins-shapes.cc (create): New. > * config/arm/arm-mve-builtins-shapes.h: (create): New. > --- > gcc/config/arm/arm-mve-builtins-shapes.cc | 22 ++++++++++++++++++++++ > gcc/config/arm/arm-mve-builtins-shapes.h | 1 + > 2 files changed, 23 insertions(+) > > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm- > mve-builtins-shapes.cc > index 83410bbc51a..e4a42005852 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.cc > +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc > @@ -458,6 +458,28 @@ struct binary_orrq_def : public overloaded_base<0> > }; > SHAPE (binary_orrq) > > +/* <T0>xN_t vfoo[_t0](uint64_t, uint64_t) > + > + where there are N arguments in total. > + Example: vcreateq. > + int16x8_t [__arm_]vcreateq_s16(uint64_t a, uint64_t b) */ > +struct create_def : public nonoverloaded_base > +{ > + void > + build (function_builder &b, const function_group_info &group, > + bool preserve_user_namespace) const override > + { > + build_all (b, "v0,su64,su64", group, MODE_none, > preserve_user_namespace); > + } > + > + tree > + resolve (function_resolver &r) const override > + { > + return r.resolve_uniform (0, 2); > + } > +}; > +SHAPE (create) > + > /* <T0>[xN]_t vfoo_t0(). > > Example: vuninitializedq. > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.h b/gcc/config/arm/arm- > mve-builtins-shapes.h > index 618b3226050..3305d12877a 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.h > +++ b/gcc/config/arm/arm-mve-builtins-shapes.h > @@ -37,6 +37,7 @@ namespace arm_mve > extern const function_shape *const binary; > extern const function_shape *const binary_opt_n; > extern const function_shape *const binary_orrq; > + extern const function_shape *const create; > extern const function_shape *const inherent; > extern const function_shape *const unary_convert; > > -- > 2.34.1
RE: [PATCH 15/22] arm: [MVE intrinsics] add create shape
Kyrylo Tkachov via Gcc-patches Wed, 03 May 2023 01:41:17 -0700
- RE: [PATCH 03/22] arm: [MVE i... Kyrylo Tkachov via Gcc-patches
- Re: [PATCH 03/22] arm: [M... Christophe Lyon via Gcc-patches
- [PATCH 04/22] arm: [MVE intrinsics] Rework... Christophe Lyon via Gcc-patches
- RE: [PATCH 04/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 05/22] arm: [MVE intrinsics] add bi... Christophe Lyon via Gcc-patches
- RE: [PATCH 05/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 07/22] arm: [MVE intrinsics] factor... Christophe Lyon via Gcc-patches
- RE: [PATCH 07/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- Re: [PATCH 07/22] arm: [MVE intri... Christophe Lyon via Gcc-patches
- [PATCH 15/22] arm: [MVE intrinsics] add cr... Christophe Lyon via Gcc-patches
- RE: [PATCH 15/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 10/22] arm: [MVE intrinsics] factor... Christophe Lyon via Gcc-patches
- RE: [PATCH 10/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 09/22] arm: [MVE intrinsics] add bi... Christophe Lyon via Gcc-patches
- RE: [PATCH 09/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 16/22] arm: [MVE intrinsics] factor... Christophe Lyon via Gcc-patches
- RE: [PATCH 16/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 19/22] arm: [MVE intrinsics] factor... Christophe Lyon via Gcc-patches
- RE: [PATCH 19/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches
- [PATCH 20/22] arm: [MVE intrinsics] factor... Christophe Lyon via Gcc-patches
- RE: [PATCH 20/22] arm: [MVE intrinsic... Kyrylo Tkachov via Gcc-patches