mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 09:26:16 +00:00
Fixed handling of different signedness in power operands
This commit is contained in:
parent
b04051a0e2
commit
9f49d538e1
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
if (0) { case AST_POW: const_func = RTLIL::const_pow; }
|
if (0) { case AST_POW: const_func = RTLIL::const_pow; }
|
||||||
if (children[0]->type == AST_CONSTANT && children[1]->type == AST_CONSTANT) {
|
if (children[0]->type == AST_CONSTANT && children[1]->type == AST_CONSTANT) {
|
||||||
RTLIL::Const y = const_func(children[0]->bitsAsConst(width_hint, sign_hint),
|
RTLIL::Const y = const_func(children[0]->bitsAsConst(width_hint, sign_hint),
|
||||||
RTLIL::Const(children[1]->bits), sign_hint, type == AST_POW ? sign_hint : false, width_hint);
|
RTLIL::Const(children[1]->bits), sign_hint, type == AST_POW ? children[1]->is_signed : false, width_hint);
|
||||||
newNode = mkconst_bits(y.bits, sign_hint);
|
newNode = mkconst_bits(y.bits, sign_hint);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue