This patch folds signed SVE division where all divisor elements are any power of 2 to svasr. Tests were added to check 1) whether the transform is applied and 2) to check correctness for a variety of values.
The patch was bootstrapped and regtested on aarch64-linux-gnu, no regression. OK for mainline? Signed-off-by: Jennifer Schmitz <jschm...@nvidia.com> gcc/ * config/aarch64/aarch64-sve-builtins-base.cc (svdiv_impl): Extend fold and expand. gcc/testsuite/ * gcc.target/aarch64/sve/div_const_1.c: New test. * gcc.target/aarch64/sve/div_const_1_run.c: Likewise.
0002-SVE-intrinsics-Add-strength-reduction-for-division-b.patch
Description: Binary data
smime.p7s
Description: S/MIME cryptographic signature