(simplify_unary_operation): Cast constant 1 to HOST_WIDE_INT

before shifting left to form mask.

From-SVN: r8707
This commit is contained in:
Jim Wilson 1994-12-29 11:17:28 -08:00
parent 0d6fc1be02
commit 4879acf67e
1 changed files with 1 additions and 1 deletions

View File

@ -3078,7 +3078,7 @@ simplify_unary_operation (code, mode, op, op_mode)
if (width < HOST_BITS_PER_WIDE_INT
&& ((val & ((HOST_WIDE_INT) (-1) << (width - 1)))
!= ((HOST_WIDE_INT) (-1) << (width - 1))))
val &= (1 << width) - 1;
val &= ((HOST_WIDE_INT) 1 << width) - 1;
return GEN_INT (val);
}