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

index de9f51e7a23c96b1f30d3625e224460d2a782007..7e98475ef54765a849501385533a433d6f34c9e0 100644 (file)
@@ -695,10 +695,10 @@ XO-Form
 
 Pseudo-code:
 
-    dividend[0:63] <- (RA)
-    divisor[0:63] <- (RB)
-    if (divisor = [0]*64) then
-        RT[0:63] <- undefined([0]*64)
+    dividend[0:XLEN-1] <- (RA)
+    divisor[0:XLEN-1] <- (RB)
+    if (divisor = [0]*XLEN) then
+        RT[0:XLEN-1] <- undefined([0]*XLEN)
         overflow <- 1
     else
         RT <- dividend / divisor