https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86367
--- Comment #4 from Michael Meissner <meissner at gcc dot gnu.org> --- If I change the __builtin_nanq calls to __builtin_nanl and the __builtin_nansq calls to __builtin_nansl when __float128 and long double use the same type, the test works fine.