* expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.

From-SVN: r27796
This commit is contained in:
David Edelsohn 1999-06-28 03:09:43 +00:00 committed by Jeff Law
parent 8119eca6ff
commit c8e7fe5816
2 changed files with 7 additions and 1 deletions

View 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.
Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
* jump.c (jump_optimize_1): Validate the cmov copy to a temporary.

View 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,