Commit e40122f0 by Roger Sayle Committed by Roger Sayle

simplify-rtx.c (simplify_binary_operation_1): Cast width to HOST_WIDE_INT to…

simplify-rtx.c (simplify_binary_operation_1): Cast width to HOST_WIDE_INT to avoid comparison warnings on some targets.


	* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
	width to HOST_WIDE_INT to avoid comparison warnings on some targets.

From-SVN: r114248
parent 8c0633b7
2006-05-30 Roger Sayle <roger@eyesopen.com>
* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
width to HOST_WIDE_INT to avoid comparison warnings on some targets.
2006-05-30 Roger Sayle <roger@eyesopen.com>
PR tree-optimization/23452
* fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
......
......@@ -2464,7 +2464,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
if (GET_CODE (op0) == CLZ
&& GET_CODE (trueop1) == CONST_INT
&& STORE_FLAG_VALUE == 1
&& INTVAL (trueop1) < width)
&& INTVAL (trueop1) < (HOST_WIDE_INT)width)
{
enum machine_mode imode = GET_MODE (XEXP (op0, 0));
unsigned HOST_WIDE_INT zero_val = 0;
......
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