]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
combine.c (nonzero_bits): Revert 2003-01-25 change.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 27 Jan 2003 17:25:14 +0000 (18:25 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 27 Jan 2003 17:25:14 +0000 (17:25 +0000)
* combine.c (nonzero_bits): Revert 2003-01-25 change.
(num_sign_bit_copies): Likewise.

From-SVN: r61891

gcc/ChangeLog
gcc/combine.c

index 0730c2b98ac11f3b42616ee0d2397b7416335c78..b1d3ec2d347b4f98b43f4361647f6f01396c71cb 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * combine.c (nonzero_bits): Revert 2003-01-25 change.
+       (num_sign_bit_copies): Likewise.
+
 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        * doc/passes.texi: Fix typo.
index 50c04b1abf57e5d4075a40da3854bfa9ef581b3b..5e8ad1ac3a28ba0a607e143c637a93bc72a1ca8a 100644 (file)
@@ -8305,13 +8305,12 @@ nonzero_bits (x, mode)
 #if defined (WORD_REGISTER_OPERATIONS) && defined (LOAD_EXTEND_OP)
          /* If this is a typical RISC machine, we only have to worry
             about the way loads are extended.  */
-         if ((LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) == SIGN_EXTEND
-              ? (((nonzero
-                   & (((unsigned HOST_WIDE_INT) 1
-                       << (GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (x))) - 1))))
-                  != 0))
-              : LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) != ZERO_EXTEND)
-             || GET_CODE (SUBREG_REG (x)) != MEM)
+         if (LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) == SIGN_EXTEND
+             ? (((nonzero
+                  & (((unsigned HOST_WIDE_INT) 1
+                      << (GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (x))) - 1))))
+                 != 0))
+             : LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) != ZERO_EXTEND)
 #endif
            {
              /* On many CISC machines, accessing an object in a wider mode
@@ -8534,8 +8533,7 @@ num_sign_bit_copies (x, mode)
 
       if ((GET_MODE_SIZE (GET_MODE (x))
           > GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))
-         && LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) == SIGN_EXTEND
-         && GET_CODE (SUBREG_REG (x)) == MEM)
+         && LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (x))) == SIGN_EXTEND)
        return num_sign_bit_copies (SUBREG_REG (x), mode);
 #endif
 #endif