diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-02-01 00:54:27 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-01-31 17:54:27 -0700 |
commit | 82301b881cd5406a5795016a255bb3d7c75b8d61 (patch) | |
tree | 17ca5f7d8840522cc05b9890b5a8660ccaa08d41 | |
parent | a81fb89ebed2978466d24ea372dac5adc36337ec (diff) | |
download | gcc-82301b881cd5406a5795016a255bb3d7c75b8d61.zip gcc-82301b881cd5406a5795016a255bb3d7c75b8d61.tar.gz gcc-82301b881cd5406a5795016a255bb3d7c75b8d61.tar.bz2 |
mips.md (adddi3_internal_2): Be consistent with adddi3 expander with handling of -32768.
* mips.md (adddi3_internal_2): Be consistent with adddi3 expander
with handling of -32768.
From-SVN: r17564
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d19e12c..a6ab5f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index f90d75b..86ba669 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -778,7 +778,9 @@ (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 |