This practically only works for the f16 case AMDGPU uses, not wider types. Fixes bug 49710 by failing legalization. (cherry picked from commit 83a25a10)