diff options
author | Andreas Schwab <schwab@suse.de> | 2004-09-03 08:57:35 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2004-09-03 08:57:35 +0000 |
commit | 25c99d8f30e1758d8ac62e93e0cee24c1cc9e311 (patch) | |
tree | 20f5ef096aeee8696f2aa0998d47d1e7a50b5e2d | |
parent | 7b3ed47dad5a76928546b62fe2a49e1fd87e5efb (diff) | |
download | gcc-25c99d8f30e1758d8ac62e93e0cee24c1cc9e311.zip gcc-25c99d8f30e1758d8ac62e93e0cee24c1cc9e311.tar.gz gcc-25c99d8f30e1758d8ac62e93e0cee24c1cc9e311.tar.bz2 |
m68k.c (output_andsi3): Use -1 instead of (HOST_WIDE_INT)0xffffffff since CONST_INT value are always...
* config/m68k/m68k.c (output_andsi3): Use -1 instead of
(HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
extended.
From-SVN: r87031
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9c847e..da4164b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-09-03 Andreas Schwab <schwab@suse.de> + + * config/m68k/m68k.c (output_andsi3): Use -1 instead of + (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign + extended. + 2004-09-02 Jan Beulich <jbeulich@novell.com> * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h. diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 088714c..dd469c3 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -3213,7 +3213,7 @@ output_andsi3 (rtx *operands) { int logval; if (GET_CODE (operands[2]) == CONST_INT - && (INTVAL (operands[2]) | 0xffff) == (HOST_WIDE_INT)0xffffffff + && (INTVAL (operands[2]) | 0xffff) == -1 && (DATA_REG_P (operands[0]) || offsettable_memref_p (operands[0])) && !TARGET_COLDFIRE) |