Fix bug added to sparc 64-bit sub_ddmmss() implementation.
authorDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2012 01:54:59 +0000 (01:54 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Mon, 4 Jun 2012 01:54:59 +0000 (18:54 -0700)
* longlong.h [SPARC] (sub_ddmmss): Fix thinko in previous 64-bit
change.

From-SVN: r188163

libgcc/ChangeLog
libgcc/longlong.h

index 9b4491cde9617d32e20cf8b190df3d5d97609b2a..bad8ec08610055b80d688442bed0455a984ecd70 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-03  David S. Miller  <davem@davemloft.net>
+
+       * longlong.h [SPARC] (sub_ddmmss): Fix thinko in previous 64-bit
+       change.
+
 2012-05-31  David S. Miller  <davem@davemloft.net>
 
        * longlong.h [SPARC] (umul_ppmm, udiv_qrnnd): Use hardware integer
index ad42907f547d17a0c4c76218223abf2b0c411e5f..0427718396317e70764f1e15b382a76078930b88 100644 (file)
@@ -1343,7 +1343,7 @@ UDItype __umulsidi3 (USItype, USItype);
     __asm__ ("subcc\t%r5,%6,%1\n\t"                                    \
             "sub\t%r3,%4,%0\n\t"                                       \
             "movcs\t%%xcc, 1, %2\n\t"                                  \
-            "add\t%0, %2, %0"                                          \
+            "sub\t%0, %2, %0"                                          \
             : "=r" ((UDItype)(sh)),                                    \
               "=&r" ((UDItype)(sl)),                                   \
               "+r" (__carry)                                           \