From: Clifford Wolf Date: Thu, 7 Nov 2013 13:53:10 +0000 (+0100) Subject: Fixed sign handling in constants X-Git-Tag: yosys-0.2.0~388 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed4bcd52e5d7ab466a4bcd87ae787f1ab7c70fb7;p=yosys.git Fixed sign handling in constants --- diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 132a59f2c..7712023c5 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -445,6 +445,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, delete children[0]; children[0] = mkconst_bits(sig.as_const().bits, children[0]->is_signed); } + children[0]->is_signed = is_signed; } // annotate identifiers using scope resolution and create auto-wires as needed