Improve inf/nan. This also makes GCC encode them consistently with Clang and with the existing testdata.