Marc Glisse <marc.gli...@inria.fr> writes: > * simplify-rtx.c (simplify_subreg): For vectors, create a VEC_SELECT.
Probably not helpful, sorry, but a subreg->vec_select transformation feels like it's going in the wrong direction. Going from vec_select to subreg would be OK from a "layering" perspective (although whether it's a good idea or not is another question), but not the other way. E.g. we convert can convert truncate to subreg, but should never convert subreg to truncate. One problem is that subregs can be lvalues as well as rvalues, whereas vec_select is always an rvalue. Also, it's invalid to form a non-lowpart subreg of a word or subword register, so having general vec_select handling feels like it's coping with input that ought to be rejected with a null return. Richard