projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a8b8b
)
Fixed sign handling in constants
author
Clifford Wolf
<clifford@clifford.at>
Thu, 7 Nov 2013 13:53:10 +0000
(14:53 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Thu, 7 Nov 2013 13:53:10 +0000
(14:53 +0100)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 132a59f2c5bbf7f18b0e38671940b1075a731e04..7712023c56883ecaf2c50992a7535eff67219994 100644
(file)
--- 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