From: Dmitry Selyutin Date: Tue, 24 Aug 2021 11:51:55 +0000 (+0000) Subject: fixedarith: switch divduX to XLEN X-Git-Tag: xlen-bcd~72 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0958472c2d3628c89509a06a4562a026db1489c;p=openpower-isa.git fixedarith: switch divduX to XLEN --- diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index de9f51e7..7e98475e 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -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