From: Dmitry Selyutin Date: Tue, 24 Aug 2021 11:59:10 +0000 (+0000) Subject: fixedarith: switch divdeuX to XLEN X-Git-Tag: xlen-bcd~69 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb6a68c07b57db29ea664f9d79ead7f0bf6a10a6;p=openpower-isa.git fixedarith: switch divdeuX to XLEN --- diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index 663fa176..736e580a 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -753,19 +753,19 @@ XO-Form Pseudo-code: - dividend[0:127] <- (RA) || [0]*64 - divisor[0:127] <- [0]*64 || (RB) - if divisor = [0]*128 then + dividend[0:(XLEN*2)-1] <- (RA) || [0]*XLEN + divisor[0:(XLEN*2)-1] <- [0]*XLEN || (RB) + if divisor = [0]*(XLEN*2) then overflow <- 1 else result <- dividend / divisor if (RA)