OSDN Git Service

* combine.c (try_combine): Ensure const_int pow2 is positive.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2001 15:05:51 +0000 (15:05 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2001 15:05:51 +0000 (15:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43983 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index c80f159..57ea335 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-13  David Edelsohn  <edelsohn@gnu.org>
+
+       * combine.c (try_combine): Ensure const_int pow2 is positive.
+
 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
 
         * config.gcc: Add configuration for s/390. 
index 6972d85..2557d75 100644 (file)
@@ -2235,6 +2235,7 @@ try_combine (i3, i2, i1, new_direct_jump_p)
             appeared to be a memory address.  This is a kludge.  */
          if (split_code == MULT
              && GET_CODE (XEXP (*split, 1)) == CONST_INT
+             && INTVAL (XEXP (*split, 1)) > 0
              && (i = exact_log2 (INTVAL (XEXP (*split, 1)))) >= 0)
            {
              SUBST (*split, gen_rtx_ASHIFT (split_mode,