aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>2002-01-21 22:19:55 +0000
committerFranz Sirl <sirl@gcc.gnu.org>2002-01-21 22:19:55 +0000
commit3b5708e7e67f0e50a7d67545d898ac69cdbb9846 (patch)
treed0b166fdabc55ab0abc9add9af4faaec0d01f54a /gcc
parent38e583fd25d7c8c422f4d5c10b17fc0beb9951cc (diff)
downloadgcc-3b5708e7e67f0e50a7d67545d898ac69cdbb9846.zip
gcc-3b5708e7e67f0e50a7d67545d898ac69cdbb9846.tar.gz
gcc-3b5708e7e67f0e50a7d67545d898ac69cdbb9846.tar.bz2
combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP. From-SVN: r49057
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/combine.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d65aaf8..33de54d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
+
2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
diff --git a/gcc/combine.c b/gcc/combine.c
index a5c29f04..663fd1d 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));