genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests are for the same position.

gcc/
	* genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
	are for the same position.

From-SVN: r222618
This commit is contained in:
Richard Sandiford 2015-04-30 11:53:31 +00:00 committed by Richard Sandiford
parent e1c444fef0
commit cebe850dfa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
* genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
are for the same position.
2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
* tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of

View File

@ -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),