m68k.c (output_andsi3): Use -1 instead of (HOST_WIDE_INT)0xffffffff since CONST_INT...
authorAndreas Schwab <schwab@suse.de>
Fri, 3 Sep 2004 08:57:35 +0000 (08:57 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 3 Sep 2004 08:57:35 +0000 (08:57 +0000)
* 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

gcc/ChangeLog
gcc/config/m68k/m68k.c

index a9c847e09c0e59ca081bab00918ceee57193e783..da4164b011f4ac1f6e5d2fadf7e41d78be8af030 100644 (file)
@@ -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.
index 088714c4a6986eaeea6caf18153a14ae1fa04519..dd469c3a7df4a63c0d782ed91c46922e9a98b9e5 100644 (file)
@@ -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)