Re: [SVE] Fold svdupq to VEC_PERM_EXPR if elements are not constant

2023-06-27 Thread Prathamesh Kulkarni via Gcc-patches
s32: > > dup z0.q, z0.q[0] > > ret > > > > Bootstrapped+tested on aarch64-linux-gnu. > > OK to commit ? > > > > Thanks, > > Prathamesh > > > > [SVE] Fold svdupq to VEC_PERM_EXPR if elements are not constant. > > &

Re: [SVE] Fold svdupq to VEC_PERM_EXPR if elements are not constant

2023-06-27 Thread Richard Sandiford via Gcc-patches
v0.4s, v30.4s, v31.4s > dup z0.q, z0.q[0] > ret > > Code-gen with attached patch: > f_s32: > dup z0.q, z0.q[0] > ret > > Bootstrapped+tested on aarch64-linux-gnu. > OK to commit ? > > Thanks, > Pratham

[SVE] Fold svdupq to VEC_PERM_EXPR if elements are not constant

2023-06-27 Thread Prathamesh Kulkarni via Gcc-patches
: dup z0.q, z0.q[0] ret Bootstrapped+tested on aarch64-linux-gnu. OK to commit ? Thanks, Prathamesh [SVE] Fold svdupq to VEC_PERM_EXPR if elements are not constant. gcc/ChangeLog: * config/aarch64/aarch64-sve-builtins-base.cc (svdupq_impl::fold_nonconst_dupq): New