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

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