From: David Edelsohn Date: Mon, 28 Jun 1999 03:09:17 +0000 (+0000) Subject: * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note. X-Git-Tag: prereleases/gcc-2.95-test~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232473916de38641d139d191fa5cc6a398cab6e5;p=thirdparty%2Fgcc.git * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note. From-SVN: r27795 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c629e449574..f864879901e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 28 04:07:27 1999 David Edelsohn + + * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note. + Fri Jun 25 06:06:37 1999 Richard Henderson * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define diff --git a/gcc/expmed.c b/gcc/expmed.c index dc6382c296d2..ffe16fedaf47 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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,