Simplify range-op shift mask generation