]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc64/soft-fp/qp_cmp.c
soft-fp: Refactor exception handling for comparisons.
[thirdparty/glibc.git] / sysdeps / sparc / sparc64 / soft-fp / qp_cmp.c
index 1929a082c2b54a1835964a0336aefdee3943fec5..dadb36909d9142162fe98e8af7ec4189c1913f39 100644 (file)
@@ -31,10 +31,8 @@ int _Qp_cmp(const long double *a, const long double *b)
   FP_INIT_ROUNDMODE;
   FP_UNPACK_RAW_QP(A, a);
   FP_UNPACK_RAW_QP(B, b);
-  FP_CMP_Q(r, B, A, 3);
+  FP_CMP_Q(r, B, A, 3, 1);
   if (r == -1) r = 2;
-  if (r == 3 && (FP_ISSIGNAN_Q(A) || FP_ISSIGNAN_Q(B)))
-    FP_SET_EXCEPTION(FP_EX_INVALID);
   QP_HANDLE_EXCEPTIONS(
        __asm (
 "      ldd [%0], %%f52\n"