summaryrefslogtreecommitdiffstats
path: root/gcc/combine.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-13 15:05:51 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-13 15:05:51 +0000
commitfd2ce42712717e13ab2dd0a9568284546698d902 (patch)
tree2c0b31c8ae90c95f18c468c4542d5d93e70a5a09 /gcc/combine.c
parent19abf88717ac06170fd865bf449ed6386a1de08d (diff)
downloadppe42-gcc-fd2ce42712717e13ab2dd0a9568284546698d902.tar.gz
ppe42-gcc-fd2ce42712717e13ab2dd0a9568284546698d902.zip
* combine.c (try_combine): Ensure const_int pow2 is positive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 6972d85fc09..2557d758367 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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,
OpenPOWER on IntegriCloud