]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/c6x/ltd.c
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / c6x / ltd.c
index ca8148fcd40a40149d3b4f8339540232a39c8353..f3c25d489bbc431d0eacc3ce9233f838699b2731 100644 (file)
@@ -1,6 +1,6 @@
 /* Software floating-point emulation.
    Return 1 iff a < b, 0 otherwise.
-   Copyright (C) 1997-2014 Free Software Foundation, Inc.
+   Copyright (C) 1997-2017 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@cygnus.com) and
                  Jakub Jelinek (jj@ultra.linux.cz).
 
@@ -38,9 +38,7 @@ CMPtype __c6xabi_ltd(DFtype a, DFtype b)
 
   FP_UNPACK_RAW_D(A, a);
   FP_UNPACK_RAW_D(B, b);
-  FP_CMP_D(r, A, B, 2);
-  if (r == 2 && (FP_ISSIGNAN_D(A) || FP_ISSIGNAN_D(B)))
-    FP_SET_EXCEPTION(FP_EX_INVALID);
+  FP_CMP_D(r, A, B, 2, 2);
   FP_HANDLE_EXCEPTIONS;
 
   return r < 0;