https://github.com/arsenm approved this pull request. Maybe test v2i16 / v3i16 with this pattern. IIRC you won't be able to use clamp to implement this, since op_sel has the usual operand select behavior. https://github.com/llvm/llvm-project/pull/216592