aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2001-09-11 08:38:14 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2001-09-11 08:38:14 +0000
commitb1c4394d5db5b1c73458e8927dbcedc101874e04 (patch)
tree94cc429898e48f189b4b7cd76937e1ec8975393b /gcc/combine.c
parenta27082e02dd3ce463e39be2844dcc583f0e14f51 (diff)
downloadgcc-b1c4394d5db5b1c73458e8927dbcedc101874e04.zip
gcc-b1c4394d5db5b1c73458e8927dbcedc101874e04.tar.gz
gcc-b1c4394d5db5b1c73458e8927dbcedc101874e04.tar.bz2
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
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 78bf6ce..1512ef0 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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;