back.rtlil: sign of rhs and lhs of ${sshr,sshl,pow} don't need to match.
This commit is contained in:
parent
3a1dae591b
commit
d3f7cc8ed2
|
@ -485,7 +485,7 @@ class _RHSValueCompiler(_ValueCompiler):
|
|||
lhs, rhs = value.operands
|
||||
lhs_bits, lhs_sign = lhs.shape()
|
||||
rhs_bits, rhs_sign = rhs.shape()
|
||||
if lhs_sign == rhs_sign:
|
||||
if lhs_sign == rhs_sign or value.op in ("<<", ">>", "**"):
|
||||
lhs_wire = self(lhs)
|
||||
rhs_wire = self(rhs)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue