From: Franz Sirl Date: Mon, 21 Jan 2002 22:19:55 +0000 (+0000) Subject: combine.c (simplify_and_const_int): Properly sign-extend CONSTOP. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b5708e7e67f0e50a7d67545d898ac69cdbb9846;p=gcc.git combine.c (simplify_and_const_int): Properly sign-extend CONSTOP. 2002-01-21 Franz Sirl * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP. From-SVN: r49057 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d65aaf811b1..33de54d7b39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-01-21 Franz Sirl + + * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP. + 2002-01-21 John David Anglin * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin". diff --git a/gcc/combine.c b/gcc/combine.c index a5c29f04c3c..663fd1d6198 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7830,6 +7830,7 @@ simplify_and_const_int (x, mode, varop, constop) else { + constop = trunc_int_for_mode (constop, mode); if (GET_CODE (XEXP (x, 1)) != CONST_INT || (unsigned HOST_WIDE_INT) INTVAL (XEXP (x, 1)) != constop) SUBST (XEXP (x, 1), GEN_INT (constop));