From 10d48e7cd94b998f2e806d12a878e221eb017979 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 15 Sep 2015 19:50:15 +0200 Subject: [PATCH] alpha.c (alpha_expand_block_clear): Use HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting. * 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 | 5 +++++ gcc/config/alpha/alpha.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70cd06358b5..9acbc570057 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-15 Uros Bizjak + + * 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 PR tree-optimization/47679 diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 32bb36eec33..cae819fa782 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -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); -- 2.30.2