Pinging with updated subject, had missed the [PATCH] header before. Regards, Soumya
> On 24 Sep 2024, at 2:00 PM, Soumya AR <soum...@nvidia.com> wrote: > > This patch implements constant folding for svlsl. Test cases have been added > to > check for the following cases: > > Zero, merge, and don't care predication. > Shift by 0. > Shift by register width. > Overflow shift on signed and unsigned integers. > Shift on a negative integer. > Maximum possible shift, eg. shift by 7 on an 8-bit integer. > > The patch was bootstrapped and regtested on aarch64-linux-gnu, no regression. > OK for mainline? > > Signed-off-by: Soumya AR <soum...@nvidia.com> > > gcc/ChangeLog: > > * config/aarch64/aarch64-sve-builtins-base.cc (svlsl_impl::fold): > Try constant folding. > > gcc/testsuite/ChangeLog: > > * gcc.target/aarch64/sve/const_fold_lsl_1.c: New test. > > <0001-SVE-intrinsics-Fold-constant-operands-for-svlsl.patch>