Hi, I'm looking into vec_set with variable index on s390. Uros posted a patch [1] that did not make it upstream in Nov 2020. It changed the mode of the index operand to whatever the target supports in can_vec_set_var_idx_p. I missed it back then but we indeed do not make proper use of vec_set with an index register.
With the patch my local changes to make better use of vec_set work nicely even though I haven't done a full bootstrap yet. Were there other issues with the patch or can it still be applied? Regards Robin [1] https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559213.html