From f839b842a23a657c2431c84ff5a54b7684025622 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 6 Nov 2013 18:45:31 +0100 Subject: Fixed handling of undef values in POS cells in ConstEval --- kernel/calc.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kernel/calc.cc') diff --git a/kernel/calc.cc b/kernel/calc.cc index efb09c39..f2cbd6f4 100644 --- a/kernel/calc.cc +++ b/kernel/calc.cc @@ -418,9 +418,7 @@ RTLIL::Const RTLIL::const_pos(const RTLIL::Const &arg1, const RTLIL::Const&, boo RTLIL::Const arg1_ext = arg1; while (int(arg1_ext.bits.size()) < result_len) arg1_ext.bits.push_back(signed1 && arg1_ext.bits.size() ? arg1_ext.bits.back() : RTLIL::State::S0); - - RTLIL::Const zero(RTLIL::State::S0, 1); - return RTLIL::const_add(zero, arg1_ext, false, signed1, result_len); + return arg1_ext; } RTLIL::Const RTLIL::const_neg(const RTLIL::Const &arg1, const RTLIL::Const&, bool signed1, bool, int result_len) -- cgit v1.2.3