summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-30 11:53:31 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-30 11:53:31 +0000
commitfe512d6dd228c55f0b388d56025a82bbb0359941 (patch)
tree7208b6300d240abf6ffcf5fd64fa81912a7933df /gcc/genrecog.c
parent13db470408583812cac684219836b83cdee0cd71 (diff)
downloadgcc-fe512d6dd228c55f0b388d56025a82bbb0359941.tar.gz
gcc/
* genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests are for the same position. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222618 138bc75d-0d04-0410-961f-82ee72b054a4
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),