fixedarith: switch mulhw to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Mon, 23 Aug 2021 18:51:30 +0000 (18:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 14:31:59 +0000 (15:31 +0100)
openpower/isa/fixedarith.mdwn

index bff81b428bcb3d8a37134e2c02a29a36dc36705b..3009b82668e75730d463df31cf7d8a5edb8d1b66 100644 (file)
@@ -331,9 +331,9 @@ XO-Form
 
 Pseudo-code:
 
-    prod[0:63] <- MULS((RA)[32:63], (RB)[32:63])
-    RT[32:63] <- prod[0:31]
-    RT[0:31] <- undefined(prod[0:31])
+    prod[0:XLEN-1] <- MULS((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: