alpha.c (alpha_expand_block_clear): Use HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 15 Sep 2015 17:50:15 +0000 (19:50 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 15 Sep 2015 17:50:15 +0000 (19:50 +0200)
* config/alpha/alpha.c (alpha_expand_block_clear): Use
HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.

From-SVN: r227804

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 70cd06358b558668cdce63bb649d190c4cc8b8e2..9acbc570057c253e394f4122e2068272a67fb5ca 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/alpha/alpha.c (alpha_expand_block_clear): Use
+       HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
+
 2015-09-15  Jeff Law  <law@redhat.com>
 
         PR tree-optimization/47679
index 32bb36eec33d374bdad498295688d3f739e969ac..cae819fa782849b1e4d47870cc85eb7023c9a118 100644 (file)
@@ -4057,10 +4057,10 @@ alpha_expand_block_clear (rtx operands[])
          mem = adjust_address (orig_dst, mode, ofs - inv_alignofs);
          set_mem_alias_set (mem, 0);
 
-         mask = ~(~(HOST_WIDE_INT)0 << (inv_alignofs * 8));
+         mask = ~(HOST_WIDE_INT_M1U << (inv_alignofs * 8));
          if (bytes < alignofs)
            {
-             mask |= ~(HOST_WIDE_INT)0 << ((inv_alignofs + bytes) * 8);
+             mask |= HOST_WIDE_INT_M1U << ((inv_alignofs + bytes) * 8);
              ofs += bytes;
              bytes = 0;
            }
@@ -4206,7 +4206,7 @@ alpha_expand_block_clear (rtx operands[])
          mem = adjust_address (orig_dst, DImode, ofs);
          set_mem_alias_set (mem, 0);
 
-         mask = ~(HOST_WIDE_INT)0 << (bytes * 8);
+         mask = HOST_WIDE_INT_M1U << (bytes * 8);
 
          tmp = expand_binop (DImode, and_optab, mem, GEN_INT (mask),
                              NULL_RTX, 1, OPTAB_WIDEN);
@@ -4222,7 +4222,7 @@ alpha_expand_block_clear (rtx operands[])
          mem = adjust_address (orig_dst, SImode, ofs);
          set_mem_alias_set (mem, 0);
 
-         mask = ~(HOST_WIDE_INT)0 << (bytes * 8);
+         mask = HOST_WIDE_INT_M1U << (bytes * 8);
 
          tmp = expand_binop (SImode, and_optab, mem, GEN_INT (mask),
                              NULL_RTX, 1, OPTAB_WIDEN);