From: Jacob Lifshay Date: Wed, 22 Mar 2023 21:38:55 +0000 (-0700) Subject: re-add empty lines before/after SetFX -- the spec has them, we should too X-Git-Tag: opf_rfc_ls001_v3~107 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69379f9c04592bcb17e4d8bba91c402fa0eb5ad4;p=libreriscv.git re-add empty lines before/after SetFX -- the spec has them, we should too --- diff --git a/openpower/sv/rfc/ls006.mdwn b/openpower/sv/rfc/ls006.mdwn index dbff804dc..026474a9e 100644 --- a/openpower/sv/rfc/ls006.mdwn +++ b/openpower/sv/rfc/ls006.mdwn @@ -247,12 +247,16 @@ Special Registers altered: rnd <- bfp_ROUND_TO_BFP64(FPSCR.RN, src) result <- bfp64_CONVERT_FROM_BFP(rnd) cls <- fprf_CLASS_BFP64(result) + if xx_flag = 1 then SetFX(FPSCR.XX) + FRT <- result FPSCR.FPRF <- cls FPSCR.FR <- inc_flag FPSCR.FI <- xx_flag ``` + Convert from a unsigned/signed 32/64-bit integer in RB to a 32/64-bit float in FRT, following the usual 32-bit float in 64-bit float format.