mips.md (adddi3_internal_2): Be consistent with adddi3 expander with handling of...
authorJeffrey A Law <law@cygnus.com>
Sun, 1 Feb 1998 00:54:27 +0000 (00:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 1 Feb 1998 00:54:27 +0000 (17:54 -0700)
        * mips.md (adddi3_internal_2): Be consistent with adddi3 expander
        with handling of -32768.

From-SVN: r17564

gcc/ChangeLog
gcc/config/mips/mips.md

index d19e12c88f782384128594576f2396fd934b8f87..a6ab5f024fbefa41587078e6a89c7b7f56278861 100644 (file)
@@ -1,3 +1,8 @@
+Sun Feb  1 01:55:09 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * mips.md (adddi3_internal_2): Be consistent with adddi3 expander
+       with handling of -32768.
+
 Sun Feb  1 01:48:18 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * aclocal.m4 (GCC_NEED_DECLARATION): Modify macro to accept a
index f90d75b50fdf87fad0633920f40b9c44a232c1e8..86ba669b05019126650044285b54f29d3d4d1d08 100644 (file)
                 (match_operand:DI 2 "small_int" "P,J,N")))
    (clobber (match_operand:SI 3 "register_operand" "=d,d,d"))]
   "!TARGET_64BIT && !TARGET_DEBUG_G_MODE && !TARGET_MIPS16
-   && INTVAL (operands[2]) != -32768"
+   && (TARGET_GAS
+       || GET_CODE (operands[2]) != CONST_INT
+       || INTVAL (operands[2]) != -32768)"
   "@
    addu\\t%L0,%L1,%2\;sltu\\t%3,%L0,%2\;addu\\t%M0,%M1,%3
    move\\t%L0,%L1\;move\\t%M0,%M1