nir: Simplify min and max of b2f