https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120910
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note gcc and clang differ at the default for -ftrapping-math. Gcc defaults to it on while clang defaults to it off. I am not sure if that makes a difference here though.