]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 28 Jun 1999 03:09:17 +0000 (03:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 28 Jun 1999 03:09:17 +0000 (21:09 -0600)
From-SVN: r27795

gcc/ChangeLog
gcc/expmed.c

index 3c629e4495747798dc699557c6ba7032f5200108..f864879901e898408870e9b7d41c97204ff98ca8 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jun 28 04:07:27 1999  David Edelsohn  <edelsohn@gnu.org>
+
+       * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
+
 Fri Jun 25 06:06:37 1999  Richard Henderson  <rth@cygnus.com>
 
        * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
index dc6382c296d27910b45ebaa1573a976b28588d61..ffe16fedaf47f142417a45ed004a5ec217afaf7a 100644 (file)
@@ -3246,7 +3246,9 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
                        insn = get_last_insn ();
                        if (insn != last
                            && (set = single_set (insn)) != 0
-                           && SET_DEST (set) == quotient)
+                           && SET_DEST (set) == quotient
+                           && abs_d < ((unsigned HOST_WIDE_INT) 1
+                                       << (HOST_BITS_PER_WIDE_INT - 1)))
                          set_unique_reg_note (insn, 
                                               REG_EQUAL,
                                               gen_rtx_DIV (compute_mode,