From 2f0ffe315c9641e88596a8904dc800f4b360394a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 14 May 2021 18:50:08 +0100 Subject: [PATCH] clarify, comments --- src/openpower/decoder/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2