This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AArch64][SVE2] Shift-Right Accumulate combine patterns


On Fri, 27 Sep 2019 at 10:12, Richard Sandiford <richard.sandiford@arm.com>
wrote:

> Yuliang Wang <Yuliang.Wang@arm.com> writes:
> > Hi,
> >
> > This patch adds combining support for SVE2's shift-right accumulate
> instructions.
> >
> > Example snippet:
> >
> > #define IMM ...
> >
> > void foo (TYPE a, TYPE b, int n)
> > {
> >   for (int i = 0; i < n; i++)
> >     a[i] += b[i] >> IMM;
> > }
> >
> > Signed:
> >
> >   before        asr     z0.s, z0.s, #{IMM}
> >                 add     z0.s, z0.s, z1.s
> >   ...
> >   after         ssra    z0.s, z1.s, #{IMM}
> >
> > Unsigned:
> >
> >   before        lsr     z0.s, z0.s, #{IMM}
> >                 add     z0.s, z0.s, z1.s
> >   ...
> >   after         usra    z0.s, z1.s, #{IMM}
> >
> > Built and regression tested on aarch64-none-elf.
> >
> > Best Regards,
> > Yuliang Wang
> >
> >
> > gcc/ChangeLog:
> >
> > 2019-09-26  Yuliang Wang  <yuliang.wang@arm.com>
> >
> >         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
> >         New combine pattern.
> >
> > gcc/testsuite/ChangeLog:
> >
> > 2019-09-26  Yuliang Wang  <yuliang.wang@arm.com>
> >
> >         * gcc.target/aarch64/sve2/shracc_1.c: New test.
>
> Thanks, applied as r276174.
>

Hi,

I've noticed that the new test fails with -mabi=ilp32

Christophe


>
> Richard
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]