InstCombine: Verify the type before transforming uitofp into select.

PR15952.