combine.c (simplify_shift_const): Treat shifts by the mode size as undefined.

* combine.c (simplify_shift_const): Treat shifts by the mode
	size as undefined.

From-SVN: r45538
This commit is contained in:
Richard Sandiford 2001-09-11 08:38:14 +00:00 committed by Richard Sandiford
parent a27082e02d
commit b1c4394d5d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-09-11 Richard Sandiford <rsandifo@redhat.com>
* combine.c (simplify_shift_const): Treat shifts by the mode
size as undefined.
2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
* cpphash.h (struct tokenrun): New.

View File

@ -8825,7 +8825,7 @@ simplify_shift_const (x, code, result_mode, varop, input_count)
/* If we were given an invalid count, don't do anything except exactly
what was requested. */
if (input_count < 0 || input_count > (int) GET_MODE_BITSIZE (mode))
if (input_count < 0 || input_count >= (int) GET_MODE_BITSIZE (mode))
{
if (x)
return x;