combine.c (simplify_shift_const): Treat shifts by the mode size as undefined.
authorRichard Sandiford <rsandifo@redhat.com>
Tue, 11 Sep 2001 08:38:14 +0000 (08:38 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 11 Sep 2001 08:38:14 +0000 (08:38 +0000)
* combine.c (simplify_shift_const): Treat shifts by the mode
size as undefined.

From-SVN: r45538

gcc/ChangeLog
gcc/combine.c

index f025864ae30b3cdb7f2c8156260468cb4f5eaa5a..f5f5afb8b83bdce546a2f1da8f52dbeac3e48d8b 100644 (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.
index 78bf6ceb91efc57579959a388f782d7f9f99cfdb..1512ef01a12bd76635278b3638052bf58914bd8b 100644 (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;