From eb6a68c07b57db29ea664f9d79ead7f0bf6a10a6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 24 Aug 2021 11:59:10 +0000 Subject: [PATCH] fixedarith: switch divdeuX to XLEN --- openpower/isa/fixedarith.mdwn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)