* combine.c (simplify_shift_const): Fix previous patch.
authorJan Hubicka <jh@suse.cz>
Mon, 24 Feb 2003 21:10:39 +0000 (22:10 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 24 Feb 2003 21:10:39 +0000 (21:10 +0000)
From-SVN: r63380

gcc/ChangeLog
gcc/combine.c

index 99d62afed7fd9bad76538a29385b7707034ac39d..b0c8719904431cc989045a37a00049145e6d4af6 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 7792537d34b4e35e50099c4f4cb096fe163a18ba..126f90040dfa0f4ec294988c95a68b53769bc7e6 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))
        {