Commit 1568d79b by David Edelsohn Committed by David Edelsohn

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

From-SVN: r43983
parent 8e1ab0fe
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> 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
* config.gcc: Add configuration for s/390. * config.gcc: Add configuration for s/390.
......
...@@ -2235,6 +2235,7 @@ try_combine (i3, i2, i1, new_direct_jump_p) ...@@ -2235,6 +2235,7 @@ try_combine (i3, i2, i1, new_direct_jump_p)
appeared to be a memory address. This is a kludge. */ appeared to be a memory address. This is a kludge. */
if (split_code == MULT if (split_code == MULT
&& GET_CODE (XEXP (*split, 1)) == CONST_INT && GET_CODE (XEXP (*split, 1)) == CONST_INT
&& INTVAL (XEXP (*split, 1)) > 0
&& (i = exact_log2 (INTVAL (XEXP (*split, 1)))) >= 0) && (i = exact_log2 (INTVAL (XEXP (*split, 1)))) >= 0)
{ {
SUBST (*split, gen_rtx_ASHIFT (split_mode, SUBST (*split, gen_rtx_ASHIFT (split_mode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment