From: Luke Kenneth Casson Leighton Date: Fri, 14 May 2021 17:50:08 +0000 (+0100) Subject: clarify, comments X-Git-Tag: 0.0.3~47 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f0ffe315c9641e88596a8904dc800f4b360394a;p=openpower-isa.git clarify, comments --- diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index de5eb928..e73c8371 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -216,6 +216,9 @@ def SINGLE(FRS): return WORD +# XXX NOTE: these are very quick hacked functions for utterly basic +# FP support + def fp64toselectable(frt): """convert FP number to 64 bit SelectableInt """ @@ -245,7 +248,7 @@ def FPMUL(FRA, FRB): def FPDIV(FRA, FRB): result = float(FRA) / float(FRB) cvt = fp64toselectable(result) - print ("FPMUL", FRA, FRB, result, cvt) + print ("FPDIV", FRA, FRB, result, cvt) # For these tests I tried to find power instructions that would let me