fixedarith: switch maddld to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Tue, 24 Aug 2021 11:49:14 +0000 (11:49 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 16:31:20 +0000 (17:31 +0100)
openpower/isa/fixedarith.mdwn

index 3139eb209003b8f84ac69e9caa009b52f51cacf6..1db590055f13704469b3e1b0b1e83e661bff5ef5 100644 (file)
@@ -649,9 +649,9 @@ VA-Form
 
 Pseudo-code:
 
-    prod[0:127] <- MULS((RA), (RB))
-    sum[0:127] <- prod + EXTS(RC)
-    RT <- sum[64:127]
+    prod[0:(XLEN*2)-1] <- MULS((RA), (RB))
+    sum[0:(XLEN*2)-1] <- prod + EXTS(RC)
+    RT <- sum[(XLEN*2):(XLEN*2)-1]
 
 Special Registers Altered: