From 2d21f7d6b3ae0926ceb13bb4598627c8df99105e Mon Sep 17 00:00:00 2001
From: Jan Hubicka <jh@suse.cz>
Date: Mon, 24 Feb 2003 22:10:39 +0100
Subject: [PATCH] * combine.c (simplify_shift_const):  Fix previous patch.

From-SVN: r63380
---
 gcc/ChangeLog | 4 ++++
 gcc/combine.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 99d62afed7fd..b0c871990443 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
+
+	* combine.c (simplify_shift_const):  Fix previous patch.
+
 2003-02-24  Jeff Law  <law@redhat.com>
 
 	* i386.md (testdi_1_rex64): Discourage reload from using the %eax
diff --git a/gcc/combine.c b/gcc/combine.c
index 7792537d34b4..126f90040dfa 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -9434,12 +9434,12 @@ simplify_shift_const (x, code, result_mode, varop, orig_count)
       if (code == LSHIFTRT
 	  && GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
 	  && !(nonzero_bits (varop, shift_mode) >> count))
-	return const0_rtx;
+	varop = const0_rtx;
       if (code == ASHIFT
 	  && GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
 	  && !((nonzero_bits (varop, shift_mode) << count)
 	       & GET_MODE_MASK (shift_mode)))
-	return const0_rtx;
+	varop = const0_rtx;
 
       switch (GET_CODE (varop))
 	{
-- 
GitLab