From f0958472c2d3628c89509a06a4562a026db1489c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 24 Aug 2021 11:51:55 +0000 Subject: [PATCH] fixedarith: switch divduX to XLEN --- openpower/isa/fixedarith.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2