OSDN Git Service

* combine.c (simplify_shift_const): Fix previous patch.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Feb 2003 21:10:39 +0000 (21:10 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Feb 2003 21:10:39 +0000 (21:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63380 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index 99d62af..b0c8719 100644 (file)
@@ -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
index 7792537..126f900 100644 (file)
@@ -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))
        {