Commit 10d48e7c by Uros Bizjak Committed by Uros Bizjak

alpha.c (alpha_expand_block_clear): Use HOST_WIDE_INT_M1U instead of…

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
parent 0e36f5c7
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> 2015-09-15 Jeff Law <law@redhat.com>
PR tree-optimization/47679 PR tree-optimization/47679
......
...@@ -4057,10 +4057,10 @@ alpha_expand_block_clear (rtx operands[]) ...@@ -4057,10 +4057,10 @@ alpha_expand_block_clear (rtx operands[])
mem = adjust_address (orig_dst, mode, ofs - inv_alignofs); mem = adjust_address (orig_dst, mode, ofs - inv_alignofs);
set_mem_alias_set (mem, 0); 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) if (bytes < alignofs)
{ {
mask |= ~(HOST_WIDE_INT)0 << ((inv_alignofs + bytes) * 8); mask |= HOST_WIDE_INT_M1U << ((inv_alignofs + bytes) * 8);
ofs += bytes; ofs += bytes;
bytes = 0; bytes = 0;
} }
...@@ -4206,7 +4206,7 @@ alpha_expand_block_clear (rtx operands[]) ...@@ -4206,7 +4206,7 @@ alpha_expand_block_clear (rtx operands[])
mem = adjust_address (orig_dst, DImode, ofs); mem = adjust_address (orig_dst, DImode, ofs);
set_mem_alias_set (mem, 0); 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), tmp = expand_binop (DImode, and_optab, mem, GEN_INT (mask),
NULL_RTX, 1, OPTAB_WIDEN); NULL_RTX, 1, OPTAB_WIDEN);
...@@ -4222,7 +4222,7 @@ alpha_expand_block_clear (rtx operands[]) ...@@ -4222,7 +4222,7 @@ alpha_expand_block_clear (rtx operands[])
mem = adjust_address (orig_dst, SImode, ofs); mem = adjust_address (orig_dst, SImode, ofs);
set_mem_alias_set (mem, 0); 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), tmp = expand_binop (SImode, and_optab, mem, GEN_INT (mask),
NULL_RTX, 1, OPTAB_WIDEN); NULL_RTX, 1, OPTAB_WIDEN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment