duplicate overflow comment as requested by luke
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 17 May 2023 00:16:38 +0000 (17:16 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 17 May 2023 00:16:38 +0000 (17:16 -0700)
https://libre-soc.org/irclog/%23libre-soc.2023-05-16.log.html#t2023-05-16T08:54:24

openpower/isa/fpcvt.mdwn

index d25ba9cde097029494325eb7800306ec1cef9c02..a2939d0b18af0f7b9b0e5062dc30ed1a83fb36cd 100644 (file)
@@ -186,7 +186,7 @@ Pseudo-code:
             result_bfp <- bfp_CONVERT_FROM_SI64(result)
         default:  # Unsigned 64-bit
             result_bfp <- bfp_CONVERT_FROM_UI64(result)
-    overflow <- 0
+    overflow <- 0  # signals SO only when OE = 1
     if IsNaN(src) | ¬bfp_COMPARE_EQ(rnd, result_bfp) then
         overflow <- 1  # signals SO only when OE = 1
         vxcvi_flag <- 1
@@ -300,7 +300,7 @@ Pseudo-code:
             result_bfp <- bfp_CONVERT_FROM_SI64(result)
         default:  # Unsigned 64-bit
             result_bfp <- bfp_CONVERT_FROM_UI64(result)
-    overflow <- 0
+    overflow <- 0  # signals SO only when OE = 1
     if IsNaN(src) | ¬bfp_COMPARE_EQ(rnd, result_bfp) then
         overflow <- 1  # signals SO only when OE = 1
         vxcvi_flag <- 1