On 11/10/2011 12:00 PM, Richard Henderson wrote: > VEC_PERM_EXPR is explicitly modulo. Don't fail, mask.
It does occur to me that we could usefully fold a constant selector with out-of-range elements to a new selector with in-range elements, even if the other operands are non-constant. This might result in more masks being shared, should they get spilled to memory. r~