]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/rs6000/rs6000-protos.h
rs6000: Change rs6000_expand_vector_set param
authorXionghu Luo <luoxhu@linux.ibm.com>
Fri, 27 Nov 2020 05:38:33 +0000 (23:38 -0600)
committerXionghu Luo <luoxhu@linux.ibm.com>
Fri, 27 Nov 2020 05:38:33 +0000 (23:38 -0600)
commit5e9f814d754be790aec5b69a95699a8af2654058
tree5c47353bc9725a87669c2f77667625ef3a2fd8b0
parent3493b0c32815faf003cbd18dd2c1ff30818f5770
rs6000: Change rs6000_expand_vector_set param

rs6000_expand_vector_set could accept insert either to constant position
or variable position, so change the operand to reg_or_cint_operand.

gcc/ChangeLog:

2020-11-27  Xionghu Luo  <luoxhu@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.
gcc/config/rs6000/rs6000-call.c
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/vector.md