]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/x86_64/fpu/e_powl.S
Fix spurious "inexact" exceptions from x86 pow with NaN argument (bug 16167).
[thirdparty/glibc.git] / sysdeps / x86_64 / fpu / e_powl.S
index e10172674e2a3a468b3dd9ba1695bba04cdf70ff..590223b60c6e221286b580b64feb88f746721c93 100644 (file)
@@ -96,6 +96,9 @@ ENTRY(__ieee754_powl)
        cmpb    $0x05, %ah
        je      15f             // x is ±inf
 
+       cmpb    $0x01, %ah
+       je      31f             // x is NaN
+
        fxch                    // y : x
 
        /* fistpll raises invalid exception for |y| >= 1L<<63.  */