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

openpower/sv/int_fp_mv/moves_and_conversions.mdwn

index 8afc3c65ae10cd51cd47acca8f6ea84585616467..a97c70a07600f753dd84d9113e80d3025084f4af 100644 (file)
@@ -553,7 +553,7 @@ Section 7.1 of the ECMAScript / JavaScript
         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
@@ -717,7 +717,7 @@ Special Registers altered:
         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