combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Mon, 21 Jan 2002 22:19:55 +0000 (22:19 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Mon, 21 Jan 2002 22:19:55 +0000 (22:19 +0000)
2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.

From-SVN: r49057

gcc/ChangeLog
gcc/combine.c

index d65aaf811b10e8f8ff6af7b646a4da58675635a8..33de54d7b39cbfd9d6869f82904d32c176999948 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
+
 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
index a5c29f04c3cfd550f79e727b8828fb2dab9516ea..663fd1d61986578d057a7540d5b965fd0f1be2c8 100644 (file)
@@ -7830,6 +7830,7 @@ simplify_and_const_int (x, mode, varop, constop)
 
   else
     {
+      constop = trunc_int_for_mode (constop, mode);
       if (GET_CODE (XEXP (x, 1)) != CONST_INT
          || (unsigned HOST_WIDE_INT) INTVAL (XEXP (x, 1)) != constop)
        SUBST (XEXP (x, 1), GEN_INT (constop));