From: Luke Kenneth Casson Leighton Date: Sat, 15 May 2021 18:47:33 +0000 (+0100) Subject: return result in FPXXX64 functions (whoops) X-Git-Tag: 0.0.3~15 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=259fd7385eee403f2b1d22860fe9f3d4b317537f;p=openpower-isa.git return result in FPXXX64 functions (whoops) --- diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index f0dc1da3..b042070b 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -292,24 +292,28 @@ def FPADD64(FRA, FRB): result = float(FRA) + float(FRB) cvt = fp64toselectable(result) print ("FPADD64", FRA, FRB, result, cvt) + return cvt def FPSUB64(FRA, FRB): result = float(FRA) - float(FRB) cvt = fp64toselectable(result) print ("FPSUB64", FRA, FRB, result, cvt) + return cvt def FPMUL64(FRA, FRB): result = float(FRA) * float(FRB) cvt = fp64toselectable(result) print ("FPMUL64", FRA, FRB, result, cvt) + return cvt def FPDIV64(FRA, FRB): result = float(FRA) / float(FRB) cvt = fp64toselectable(result) print ("FPDIV64", FRA, FRB, result, cvt) + return cvt # For these tests I tried to find power instructions that would let me