https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81120
--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> --- If the original testcase is compiled with -fsignaling-nans, the signaling nan is not converted to a quiet nan. Thus, I believe the conversion is expected. There might be an issue with the second testcase.