Hi Christophe, Thanks for pointing this out, uploaded a fix.
Regards, Yuliang From: Christophe Lyon <[email protected]> Sent: 04 October 2019 09:25 To: Richard Sandiford <[email protected]> Cc: Yuliang Wang <[email protected]>; [email protected]; nd <[email protected]> Subject: Re: [AArch64][SVE2] Shift-Right Accumulate combine patterns On Fri, 27 Sep 2019 at 10:12, Richard Sandiford <[email protected]<mailto:[email protected]>> wrote: Yuliang Wang <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>> > > * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>): > New combine pattern. > > gcc/testsuite/ChangeLog: > > 2019-09-26 Yuliang Wang <[email protected]<mailto:[email protected]>> > > * 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
