On Sat, Oct 10, 2020 at 03:08:22AM -0500, Xionghu Luo wrote: > rs6000_expand_vector_set could accept insert either to constant position > or variable position, so change the operand to reg_or_cint_operand.
This is okay for trunk. Thank you! Segher > 2020-10-10 Xionghu Luo <luo...@linux.ibm.com> > > * config/rs6000/rs6000-call.c (altivec_expand_vec_set_builtin): > Change call param 2 from type int to rtx. > * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set): > Likewise. > * config/rs6000/rs6000.c (rs6000_expand_vector_init): > Change call param 2 from type int to rtx. > (rs6000_expand_vector_set): Likewise. > * config/rs6000/vector.md (vec_set<mode>): Support both constant > and variable index vec_set.