mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 17:27:16 +08:00
* combine.c (try_combine): Ensure const_int pow2 is positive.
From-SVN: r43983
This commit is contained in:
parent
8e1ab0fe1d
commit
1568d79b84
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user