Commit 1b5e2771 by Markus Trippelsdorf Committed by Markus Trippelsdorf

rs6000: Fix compiler warning

2014-11-20  Markus Trippelsdorf  <markus@trippelsdorf.de>

	* config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
	HOST_WIDE_INT_M1U instead of ~0.
	(includes_rldicr_lshift_p): Likewise.

From-SVN: r217905
parent 34425025
2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
* config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
HOST_WIDE_INT_M1U instead of ~0.
(includes_rldicr_lshift_p): Likewise.
2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com> 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM, * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
...@@ -16197,10 +16197,10 @@ includes_rldic_lshift_p (rtx shiftop, rtx andop) ...@@ -16197,10 +16197,10 @@ includes_rldic_lshift_p (rtx shiftop, rtx andop)
unsigned HOST_WIDE_INT c, lsb, shift_mask; unsigned HOST_WIDE_INT c, lsb, shift_mask;
c = INTVAL (andop); c = INTVAL (andop);
if (c == 0 || c == ~0) if (c == 0 || c == HOST_WIDE_INT_M1U)
return 0; return 0;
shift_mask = ~0; shift_mask = HOST_WIDE_INT_M1U;
shift_mask <<= INTVAL (shiftop); shift_mask <<= INTVAL (shiftop);
/* Find the least significant one bit. */ /* Find the least significant one bit. */
...@@ -16235,7 +16235,7 @@ includes_rldicr_lshift_p (rtx shiftop, rtx andop) ...@@ -16235,7 +16235,7 @@ includes_rldicr_lshift_p (rtx shiftop, rtx andop)
{ {
unsigned HOST_WIDE_INT c, lsb, shift_mask; unsigned HOST_WIDE_INT c, lsb, shift_mask;
shift_mask = ~0; shift_mask = HOST_WIDE_INT_M1U;
shift_mask <<= INTVAL (shiftop); shift_mask <<= INTVAL (shiftop);
c = INTVAL (andop); c = INTVAL (andop);
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