aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/combine.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/combine.c')
-rw-r--r--gcc-4.6/gcc/combine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/combine.c b/gcc-4.6/gcc/combine.c
index 5e3d368..0ffd284 100644
--- a/gcc-4.6/gcc/combine.c
+++ b/gcc-4.6/gcc/combine.c
@@ -7719,6 +7719,7 @@ make_compound_operation (rtx x, enum rtx_code in_code)
&& GET_CODE (lhs) == ASHIFT
&& CONST_INT_P (XEXP (lhs, 1))
&& INTVAL (rhs) >= INTVAL (XEXP (lhs, 1))
+ && INTVAL (XEXP (lhs, 1)) >= 0
&& INTVAL (rhs) < mode_width)
{
new_rtx = make_compound_operation (XEXP (lhs, 0), next_code);