* cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.

From-SVN: r28993
This commit is contained in:
Kaveh R. Ghazi 1999-08-31 00:23:40 +00:00 committed by Kaveh Ghazi
parent 963d441197
commit 5c45a8ac5f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
* flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not

View File

@ -5809,7 +5809,8 @@ fold_rtx (x, insn)
But The Sun V5.0 compilers mis-compiled that test. So
instead we test for the problematic value in a more direct
manner and hope the Sun compilers get it correct. */
&& INTVAL (const_arg1) != (1 << (HOST_BITS_PER_WIDE_INT - 1))
&& INTVAL (const_arg1) !=
((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT - 1))
&& GET_CODE (folded_arg1) == REG)
{
rtx new_const = GEN_INT (- INTVAL (const_arg1));