simplify-rtx.c (simplify_binary_operation_1): Cast width to HOST_WIDE_INT to avoid...
authorRoger Sayle <roger@eyesopen.com>
Tue, 30 May 2006 21:54:17 +0000 (21:54 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 30 May 2006 21:54:17 +0000 (21:54 +0000)
* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
width to HOST_WIDE_INT to avoid comparison warnings on some targets.

From-SVN: r114248

gcc/ChangeLog
gcc/simplify-rtx.c

index 95c9bad85ca9fdd4ea15d0ce74878bed04cf9a55..ed782e16ee6636d7c8a6108c129ce84b04281733 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-30  Roger Sayle  <roger@eyesopen.com>
+
+       * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
+       width to HOST_WIDE_INT to avoid comparison warnings on some targets.
+
 2006-05-30  Roger Sayle  <roger@eyesopen.com>
 
        PR tree-optimization/23452
index 65b1d193d42bfc4534132ee53d0b8e24511056da..3f627e5308a5ec265bd3e5b940605cb920da2717 100644 (file)
@@ -2464,7 +2464,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
       if (GET_CODE (op0) == CLZ
          && GET_CODE (trueop1) == CONST_INT
          && STORE_FLAG_VALUE == 1
-         && INTVAL (trueop1) < width)
+         && INTVAL (trueop1) < (HOST_WIDE_INT)width)
        {
          enum machine_mode imode = GET_MODE (XEXP (op0, 0));
          unsigned HOST_WIDE_INT zero_val = 0;