From: Luke Kenneth Casson Leighton Date: Mon, 7 Jun 2021 12:24:03 +0000 (+0100) Subject: whoops fraction in fpfromint off-by-one X-Git-Tag: xlen-bcd~484 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb280444dbd724948d89cb29624213b2485d66be;p=openpower-isa.git whoops fraction in fpfromint off-by-one --- 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