summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index e152b341408..cc3ff073381 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -1597,7 +1597,8 @@ simplify_tests (state *s)
&& d->if_statement_p (&label)
&& label == CONST_INT)
if (decision *second = d->first->to->singleton ())
- if (second->test.kind == test::WIDE_INT_FIELD
+ if (d->test.pos == second->test.pos
+ && second->test.kind == test::WIDE_INT_FIELD
&& second->test.u.opno == 0
&& second->if_statement_p (&label)
&& IN_RANGE (int64_t (label),