From: Jacob Lifshay Date: Fri, 12 May 2023 06:44:51 +0000 (-0700) Subject: make truediv available to pseudocode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d0260dfde389440fadf147937df861ce946ff70;p=openpower-isa.git make truediv available to pseudocode technically `/` in pseudocode is supposed to be real number division, with `รท` being division with result truncated to integer, however luke decided to just use `/` for integer division in pseudocode, so we need a way to work around that. --- diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index a6d902df..982f1396 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -5,7 +5,7 @@ from openpower.decoder.selectable_int import (SelectableInt, onebit, selectconcat, FieldSelectableInt) from openpower.decoder.selectable_int import EFFECTIVELY_UNLIMITED as EU from nmutil.divmod import trunc_divs, trunc_rems -from operator import floordiv, mod +from operator import floordiv, mod, truediv # truediv used by bfp_* functions from openpower.decoder.selectable_int import selectltu as ltu from openpower.decoder.selectable_int import selectgtu as gtu from openpower.decoder.selectable_int import check_extsign