Fixed signdness detection of expressions with bit- and part-selects
authorClifford Wolf <clifford@clifford.at>
Mon, 28 Jul 2014 08:10:08 +0000 (10:10 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 28 Jul 2014 08:10:08 +0000 (10:10 +0200)
frontends/ast/genrtlil.cc

index 064aec93f370a1ae818f16daa4ad431ed75d2e3f..95e15903b7032def36c3267e667e9fc666424ee8 100644 (file)
@@ -599,6 +599,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
                                delete right_at_zero_ast;
                        } else
                                this_width = range->range_left - range->range_right + 1;
+                       sign_hint = false;
                } else
                        width_hint = std::max(width_hint, this_width);
                if (!id_ast->is_signed)