https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103559
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #8 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #7) > The HW sqrt certainly handles NAN input by returning NAN output, the > question is if it is required to set some errno in that case as well or not. > One would need to check what different libcs do in that case. Glibc sets EDOM: https://sourceware.org/git/?p=glibc.git;a=blob;f=math/w_sqrt_template.c