fix: bfp_ROUND_TO_BFP64 takes 3 arguments
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 19 May 2023 06:36:15 +0000 (23:36 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:18 +0000 (19:51 +0100)
openpower/isa/fpcvt.mdwn

index d14dec91611fe716ff97a102c2437cd8ac25a285..2afeebcacfb6cec2031dc22e41e330a036f6e461 100644 (file)
@@ -48,7 +48,7 @@ Pseudo-code:
                 src <- bfp_CONVERT_FROM_SI64((RB))
             default:  # Unsigned 64-bit
                 src <- bfp_CONVERT_FROM_UI64((RB))
-        rnd <- bfp_ROUND_TO_BFP64(FPSCR.RN, src)
+        rnd <- bfp_ROUND_TO_BFP64(0b0, FPSCR.RN, src)
         result <- bfp64_CONVERT_FROM_BFP(rnd)
         cls <- fprf_CLASS_BFP64(result)
         if xx_flag = 1 then SetFX(FPSCR.XX)