* combine.c (try_combine): Ensure const_int pow2 is positive.

From-SVN: r43983
This commit is contained in:
David Edelsohn 2001-07-13 15:05:51 +00:00 committed by David Edelsohn
parent 8e1ab0fe1d
commit 1568d79b84
2 changed files with 5 additions and 0 deletions

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

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