]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
combine.c (SHIFT_COUNT_TRUNCATED): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 21 Feb 2004 18:41:48 +0000 (18:41 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 21 Feb 2004 18:41:48 +0000 (18:41 +0000)
* combine.c (SHIFT_COUNT_TRUNCATED): Remove.
* defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
* expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
* fold-const.c: Likewise.
* simplify-rtx.c: Likewise.

From-SVN: r78230

gcc/ChangeLog
gcc/combine.c
gcc/defaults.h
gcc/expmed.c
gcc/fold-const.c
gcc/simplify-rtx.c

index 8c3092affc0454a8cf4631a4906caa26ec73655d..7ebb41639fb167686c589ce8b811e4c22516028a 100644 (file)
@@ -1,3 +1,11 @@
+2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
+       * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
+       * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
+       * fold-const.c: Likewise.
+       * simplify-rtx.c: Likewise.
+
 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
 
        * combine.c (can_combine_p): Don't ignore SETs marked with
index 55e7ea33047ea7c78569743750988f98d365423a..9e541ad61f2384205dd0705d7efa093a70506b49 100644 (file)
@@ -91,10 +91,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "toplev.h"
 #include "target.h"
 
-#ifndef SHIFT_COUNT_TRUNCATED
-#define SHIFT_COUNT_TRUNCATED 0
-#endif
-
 /* Number of attempts to combine instructions in this function.  */
 
 static int combine_attempts;
index 551c9783c3e9fe439a0d4353c537a004b9848364..927e98a5fa1d2ed02cdb11690104f36ed031da8b 100644 (file)
@@ -699,4 +699,8 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
 #define OUTGOING_REGNO(N) (N)
 #endif
 
+#ifndef SHIFT_COUNT_TRUNCATED
+#define SHIFT_COUNT_TRUNCATED 0
+#endif
+
 #endif  /* ! GCC_DEFAULTS_H */
index 3d61a35f95313f6c368c7c795e0ec099994d3af3..fe81877fce8842a5d796a07431cf3c13498f91da 100644 (file)
@@ -1992,7 +1992,6 @@ expand_shift (enum tree_code code, enum machine_mode mode, rtx shifted,
 
   op1 = expand_expr (amount, NULL_RTX, VOIDmode, 0);
 
-#ifdef SHIFT_COUNT_TRUNCATED
   if (SHIFT_COUNT_TRUNCATED)
     {
       if (GET_CODE (op1) == CONST_INT
@@ -2004,7 +2003,6 @@ expand_shift (enum tree_code code, enum machine_mode mode, rtx shifted,
               && subreg_lowpart_p (op1))
        op1 = SUBREG_REG (op1);
     }
-#endif
 
   if (op1 == const0_rtx)
     return shifted;
index 5b39098d0db8cc5486043b840bd4e8cbe27311d2..eaefe02000504fa7648048ffe67492ddce085cdf 100644 (file)
@@ -374,10 +374,8 @@ lshift_double (unsigned HOST_WIDE_INT l1, HOST_WIDE_INT h1,
       return;
     }
 
-#ifdef SHIFT_COUNT_TRUNCATED
   if (SHIFT_COUNT_TRUNCATED)
     count %= prec;
-#endif
 
   if (count >= 2 * HOST_BITS_PER_WIDE_INT)
     {
@@ -437,10 +435,8 @@ rshift_double (unsigned HOST_WIDE_INT l1, HOST_WIDE_INT h1,
              ? -((unsigned HOST_WIDE_INT) h1 >> (HOST_BITS_PER_WIDE_INT - 1))
              : 0);
 
-#ifdef SHIFT_COUNT_TRUNCATED
   if (SHIFT_COUNT_TRUNCATED)
     count %= prec;
-#endif
 
   if (count >= 2 * HOST_BITS_PER_WIDE_INT)
     {
index dda7dd47365e07d46d10b12a83c620ab181a514c..5133a4aa75ea488aa259d08ba868f3632beca8e2 100644 (file)
@@ -1369,10 +1369,8 @@ simplify_binary_operation (enum rtx_code code, enum machine_mode mode,
        case LSHIFTRT:   case ASHIFTRT:
        case ASHIFT:
        case ROTATE:     case ROTATERT:
-#ifdef SHIFT_COUNT_TRUNCATED
          if (SHIFT_COUNT_TRUNCATED)
            l2 &= (GET_MODE_BITSIZE (mode) - 1), h2 = 0;
-#endif
 
          if (h2 != 0 || l2 >= GET_MODE_BITSIZE (mode))
            return 0;
@@ -2152,10 +2150,8 @@ simplify_binary_operation (enum rtx_code code, enum machine_mode mode,
       if (arg1 < 0)
        return 0;
 
-#ifdef SHIFT_COUNT_TRUNCATED
       if (SHIFT_COUNT_TRUNCATED)
        arg1 %= width;
-#endif
 
       val = ((unsigned HOST_WIDE_INT) arg0) >> arg1;
       break;
@@ -2164,10 +2160,8 @@ simplify_binary_operation (enum rtx_code code, enum machine_mode mode,
       if (arg1 < 0)
        return 0;
 
-#ifdef SHIFT_COUNT_TRUNCATED
       if (SHIFT_COUNT_TRUNCATED)
        arg1 %= width;
-#endif
 
       val = ((unsigned HOST_WIDE_INT) arg0) << arg1;
       break;
@@ -2176,10 +2170,8 @@ simplify_binary_operation (enum rtx_code code, enum machine_mode mode,
       if (arg1 < 0)
        return 0;
 
-#ifdef SHIFT_COUNT_TRUNCATED
       if (SHIFT_COUNT_TRUNCATED)
        arg1 %= width;
-#endif
 
       val = arg0s >> arg1;