fixedarith: switch mulhwu to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Mon, 23 Aug 2021 18:56:30 +0000 (18:56 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 15:08:29 +0000 (16:08 +0100)
openpower/isa/fixedarith.mdwn

index 55cf404294f40391e4f513395de4af8a805d46a3..cf5ba539a8eb6bebe9345d548fbd8f173e72ac4d 100644 (file)
@@ -369,9 +369,9 @@ XO-Form
 
 Pseudo-code:
 
-    prod[0:63] <- (RA)[32:63] * (RB)[32:63]
-    RT[32:63] <- prod[0:31]
-    RT[0:31] <- undefined(prod[0:31])
+    prod[0:XLEN-1] <- (RA)[XLEN/2:XLEN-1] * (RB)[XLEN/2:XLEN-1]
+    RT[XLEN/2:XLEN-1] <- prod[0:(XLEN/2)-1]
+    RT[0:(XLEN/2)-1] <- undefined(prod[0:(XLEN/2)-1])
 
 Special Registers Altered: