From fb280444dbd724948d89cb29624213b2485d66be Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 7 Jun 2021 13:24:03 +0100 Subject: [PATCH] whoops fraction in fpfromint off-by-one --- openpower/isafunctions/fpfromint.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpower/isafunctions/fpfromint.mdwn b/openpower/isafunctions/fpfromint.mdwn index 7502e9f2..2068509b 100644 --- a/openpower/isafunctions/fpfromint.mdwn +++ b/openpower/isafunctions/fpfromint.mdwn @@ -43,7 +43,7 @@ Convert From Integer instructions. tmp[1:53] <- frac[0:52] tmp[0:53] <- tmp[0:53] + inc carry_out <- tmp[53] - frac[0:52] <- tmp[1:54] + frac[0:52] <- tmp[1:53] if carry_out = 1 then exp <- exp + 1 # TODO, later # FPSCR[FR] <- inc -- 2.30.2