aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/simplify.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-07 14:53:10 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-07 14:53:10 +0100
commited4bcd52e5d7ab466a4bcd87ae787f1ab7c70fb7 (patch)
treefad29cfabfeb8031e8f26e13b19fb663d854066e /frontends/ast/simplify.cc
parent83a8b8b5caa9f0c3455715f78ff4f3bedab437f5 (diff)
downloadyosys-ed4bcd52e5d7ab466a4bcd87ae787f1ab7c70fb7.tar.gz
yosys-ed4bcd52e5d7ab466a4bcd87ae787f1ab7c70fb7.tar.bz2
yosys-ed4bcd52e5d7ab466a4bcd87ae787f1ab7c70fb7.zip
Fixed sign handling in constants
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r--frontends/ast/simplify.cc1
1 files changed, 1 insertions, 0 deletions
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