From 259fd7385eee403f2b1d22860fe9f3d4b317537f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 15 May 2021 19:47:33 +0100 Subject: [PATCH] return result in FPXXX64 functions (whoops) --- src/openpower/decoder/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2