avr.c (avr_simplify_comparision_p, [...]): Don't use the 'U' suffix.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 16 Dec 2001 16:09:06 +0000 (16:09 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 16 Dec 2001 16:09:06 +0000 (16:09 +0000)
* avr.c (avr_simplify_comparision_p, adjust_insn_length,
mask_one_bit_p, output_reload_insisf): Don't use the 'U' suffix.
* avr.h (reg_class): Likewise.
* avr.md: Likewise.
* mcore.c (try_constant_tricks, mcore_byte_offset,
mcore_halfword_offset): Likewise.
* sh.c (shl_sext_kind, gen_block_redirect, split_branches): Likewise.
* v850.c (not_power_of_two_operand): Likewise.

From-SVN: r48073

gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.h
gcc/config/avr/avr.md
gcc/config/mcore/mcore.c
gcc/config/sh/sh.c
gcc/config/v850/v850.c

index 2d33ac980e0579c0f528f965ce01d98de8238172..7bda459f172dfa89cd46bf365e45355f4407d554 100644 (file)
@@ -1,5 +1,14 @@
 2001-12-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * avr.c (avr_simplify_comparision_p, adjust_insn_length,
+       mask_one_bit_p, output_reload_insisf): Don't use the 'U' suffix.
+       * avr.h (reg_class): Likewise.
+       * avr.md: Likewise.
+       * mcore.c (try_constant_tricks, mcore_byte_offset,
+       mcore_halfword_offset): Likewise.
+       * sh.c (shl_sext_kind, gen_block_redirect, split_branches): Likewise.
+       * v850.c (not_power_of_two_operand): Likewise.
+
        * clipper/clix.h (ASM_OUTPUT_ASCII): Avoid signed/unsigned
        warnings.
        * convex.h (ASM_OUTPUT_ASCII): Likewise.
index 2a3ff910c6330e1fcaceae85ee86e5f74e56400c..8b7e1a12861489a06733390ab1a17ba9067324ad 100644 (file)
@@ -1358,7 +1358,7 @@ avr_simplify_comparision_p (mode, operator, x)
 {
   unsigned int max = (mode == QImode ? 0xff :
                       mode == HImode ? 0xffff :
-                      mode == SImode ? 0xffffffffU : 0);
+                      mode == SImode ? 0xffffffff : 0);
   if (max && operator && GET_CODE (x) == CONST_INT)
     {
       if (unsigned_condition (operator) != operator)
@@ -4242,8 +4242,8 @@ adjust_insn_length (insn, len)
              if (GET_MODE (op[1]) == SImode)
                len = (((mask & 0xff) != 0xff)
                       + ((mask & 0xff00) != 0xff00)
-                      + ((mask & 0xff0000UL) != 0xff0000UL)
-                      + ((mask & 0xff000000UL) != 0xff000000UL));
+                      + ((mask & 0xff0000L) != 0xff0000L)
+                      + ((mask & 0xff000000L) != 0xff000000L));
              else if (GET_MODE (op[1]) == HImode)
                len = (((mask & 0xff) != 0xff)
                       + ((mask & 0xff00) != 0xff00));
@@ -4257,8 +4257,8 @@ adjust_insn_length (insn, len)
              if (GET_MODE (op[1]) == SImode)
                len = (((mask & 0xff) != 0)
                       + ((mask & 0xff00) != 0)
-                      + ((mask & 0xff0000UL) != 0)
-                      + ((mask & 0xff000000UL) != 0));
+                      + ((mask & 0xff0000L) != 0)
+                      + ((mask & 0xff000000L) != 0));
              else if (GET_MODE (op[1]) == HImode)
                len = (((mask & 0xff) != 0)
                       + ((mask & 0xff00) != 0));
@@ -5162,9 +5162,9 @@ mask_one_bit_p (mask)
   unsigned HOST_WIDE_INT n=mask;
   for (i = 0; i < 32; ++i)
     {
-      if (n & 0x80000000UL)
+      if (n & 0x80000000L)
        {
-         if (n & 0x7fffffffUL)
+         if (n & 0x7fffffffL)
            return 0;
          else
            return 32-i;
@@ -5347,7 +5347,7 @@ output_reload_insisf (insn, operands, len)
        *len = 4 + ((INTVAL (src) & 0xff) != 0)
                + ((INTVAL (src) & 0xff00) != 0)
                + ((INTVAL (src) & 0xff0000) != 0)
-               + ((INTVAL (src) & 0xff000000U) != 0);
+               + ((INTVAL (src) & 0xff000000) != 0);
       else
        *len = 8;
 
@@ -5375,7 +5375,7 @@ output_reload_insisf (insn, operands, len)
       output_asm_insn (AS2 (ldi, %2, hlo8(%1)), operands);
       output_asm_insn (AS2 (mov, %C0, %2), operands);
     }
-  if (cnst && ((INTVAL (src) & 0xff000000U) == 0))
+  if (cnst && ((INTVAL (src) & 0xff000000) == 0))
     output_asm_insn (AS2 (mov, %D0, __zero_reg__), operands);
   else
     {
index 736f285c0a9dc99e5b0119bb40ef36aed146a656..23810bf46299220135c9b01a5f04ce4a649576a5 100644 (file)
@@ -613,8 +613,8 @@ enum reg_class {
   {(3 << REG_X)|(3 << REG_Y)|(3 << REG_Z)|(3 << REG_W)|(0xff << 16),   \
      0x00000000},      /* LD_REGS, r16 - r31 */                        \
   {0x0000ffff,0x00000000},     /* NO_LD_REGS  r0 - r15 */              \
-  {0xffffffffu,0x00000000},    /* GENERAL_REGS, r0 - r31 */            \
-  {0xffffffffu,0x00000003}     /* ALL_REGS */                          \
+  {0xffffffff,0x00000000},     /* GENERAL_REGS, r0 - r31 */            \
+  {0xffffffff,0x00000003}      /* ALL_REGS */                          \
 }
 /* An initializer containing the contents of the register classes, as
    integers which are bit masks.  The Nth integer specifies the
index a62f679ad2e02ea791e5d326d800046eba0d8f0b..3c1432d900204b5e789cc5f3ed3aa1a6527d366a 100644 (file)
            output_asm_insn (AS2 (andi,%A0,lo8(%2)), operands);
          if ((mask & 0xff00) != 0xff00)
            output_asm_insn (AS2 (andi,%B0,hi8(%2)), operands);
-         if ((mask & 0xff0000UL) != 0xff0000UL)
+         if ((mask & 0xff0000L) != 0xff0000L)
            output_asm_insn (AS2 (andi,%C0,hlo8(%2)), operands);
-         if ((mask & 0xff000000UL) != 0xff000000UL)
+         if ((mask & 0xff000000L) != 0xff000000L)
            output_asm_insn (AS2 (andi,%D0,hhi8(%2)), operands);
          return \"\";
         }
          output_asm_insn (AS2 (ori,%A0,lo8(%2)), operands);
        if (mask & 0xff00)
          output_asm_insn (AS2 (ori,%B0,hi8(%2)), operands);
-       if (mask & 0xff0000UL)
+       if (mask & 0xff0000L)
          output_asm_insn (AS2 (ori,%C0,hlo8(%2)), operands);
-       if (mask & 0xff000000UL)
+       if (mask & 0xff000000L)
          output_asm_insn (AS2 (ori,%D0,hhi8(%2)), operands);
        return \"\";
       }
index e4901085f78f0a1e9ad5b35a774102921c77bef1..a367a557c5ccc43458634c35f76024a36b9b65dd 100644 (file)
@@ -719,7 +719,7 @@ try_constant_tricks (value, x, y)
            }
        }
       
-      bit = 0x80000000UL;
+      bit = 0x80000000L;
       
       for (i = 0; i <= 31; i++)
        {
@@ -886,13 +886,13 @@ int
 mcore_byte_offset (mask)
      unsigned int mask;
 {
-  if (mask == 0x00ffffffUL)
+  if (mask == 0x00ffffffL)
     return 0;
-  else if (mask == 0xff00ffffUL)
+  else if (mask == 0xff00ffffL)
     return 1;
-  else if (mask == 0xffff00ffUL)
+  else if (mask == 0xffff00ffL)
     return 2;
-  else if (mask == 0xffffff00UL)
+  else if (mask == 0xffffff00L)
     return 3;
 
   return -1;
@@ -906,7 +906,7 @@ mcore_halfword_offset (mask)
 {
   if (mask == 0x0000ffffL)
     return 0;
-  else if (mask == 0xffff0000UL)
+  else if (mask == 0xffff0000L)
     return 1;
 
   return -1;
index 3b586dd4c63805a85d7a32808b6879abdf45113e..322de210a1805f1a07e3f35662fad1c193556c52 100644 (file)
@@ -1716,7 +1716,7 @@ shl_sext_kind (left_rtx, size_rtx, costp)
          cost = ext_shift_insns[ext - insize] + 1 + shift_insns[size - ext];
          if (cost < best_cost)
            {
-             kind = ext / 8U;
+             kind = ext / (unsigned) 8;
              best_cost = cost;
            }
        }
@@ -1733,7 +1733,7 @@ shl_sext_kind (left_rtx, size_rtx, costp)
        continue;
       if (cost < best_cost)
        {
-         kind = ext / 8U + 2;
+         kind = ext / (unsigned) 8 + 2;
          best_cost = cost;
        }
     }
@@ -2688,7 +2688,8 @@ gen_block_redirect (jump, addr, need_block)
   dest = XEXP (SET_SRC (PATTERN (jump)), 0);
   /* If the branch is out of range, try to find a scratch register for it.  */
   if (optimize
-      && (INSN_ADDRESSES (INSN_UID (dest)) - addr + 4092U > 4092 + 4098))
+      && (INSN_ADDRESSES (INSN_UID (dest)) - addr + (unsigned) 4092
+         > 4092 + 4098))
     {
       rtx scan;
       /* Don't look for the stack pointer as a scratch register,
@@ -2764,7 +2765,7 @@ gen_block_redirect (jump, addr, need_block)
        {
          dest = JUMP_LABEL (next);
          if (dest
-             && (INSN_ADDRESSES (INSN_UID (dest)) - addr + 4092U
+             && (INSN_ADDRESSES (INSN_UID (dest)) - addr + (unsigned) 4092
                  > 4092 + 4098))
            gen_block_redirect (next, INSN_ADDRESSES (INSN_UID (next)), -1);
        }
@@ -3630,7 +3631,7 @@ split_branches (first)
                    && recog_memoized (beyond) == CODE_FOR_jump
                    && ((INSN_ADDRESSES
                         (INSN_UID (XEXP (SET_SRC (PATTERN (beyond)), 0)))
-                        - INSN_ADDRESSES (INSN_UID (insn)) + 252U)
+                        - INSN_ADDRESSES (INSN_UID (insn)) + (unsigned) 252)
                        > 252 + 258 + 2))
                  gen_block_redirect (beyond,
                                      INSN_ADDRESSES (INSN_UID (beyond)), 1);
@@ -3644,7 +3645,7 @@ split_branches (first)
                && recog_memoized (next) == CODE_FOR_jump
                && ((INSN_ADDRESSES
                     (INSN_UID (XEXP (SET_SRC (PATTERN (next)), 0)))
-                    - INSN_ADDRESSES (INSN_UID (insn)) + 252U)
+                    - INSN_ADDRESSES (INSN_UID (insn)) + (unsigned) 252)
                    > 252 + 258 + 2))
              gen_block_redirect (next, INSN_ADDRESSES (INSN_UID (next)), 1);
          }
index bb117e5214e7110a2b6ca0b3822887c77025333b..0d45ac97b5bba43320941a40b99f4d55c95af19e 100644 (file)
@@ -1047,7 +1047,7 @@ not_power_of_two_operand (op, mode)
   else if (mode == HImode)
     mask = 0xffff;
   else if (mode == SImode)
-    mask = 0xffffffffU;
+    mask = 0xffffffff;
   else
     return 0;