summaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-16 14:11:52 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-16 14:11:52 +0000
commit1c5395d316ecb92fd9d87e87191acca5a4b0c9bb (patch)
tree94309f226ec59e0fa70dc410a54761ebdb8255d7 /gcc/tree-vrp.c
parent782acdd2c89c061006847bf0bf5e3f477af9285c (diff)
downloadgcc-1c5395d316ecb92fd9d87e87191acca5a4b0c9bb.tar.gz
2008-09-15 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r140388 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@140390 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 31d7f10aa13..fbcda55fc2a 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -6331,7 +6331,8 @@ simplify_truth_ops_using_ranges (gimple_stmt_iterator *gsi, gimple stmt)
/* Exclude anything that should have been already folded. */
gcc_assert (rhs_code == EQ_EXPR || rhs_code == NE_EXPR
|| rhs_code == TRUTH_XOR_EXPR);
- gcc_assert (integer_zerop (op1) || integer_onep (op1));
+ gcc_assert (integer_zerop (op1) || integer_onep (op1)
+ || integer_all_onesp (op1));
/* Limit the number of cases we have to consider. */
if (rhs_code == EQ_EXPR)