From c95ab9685665af35c7f1ff25cf1b0cf4f5383ab3 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 23 Aug 2021 19:04:28 +0000 Subject: [PATCH] fixedarith: switch divwuX 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 7e98475e..98a32366 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -416,14 +416,14 @@ XO-Form Pseudo-code: - dividend[0:31] <- (RA)[32:63] - divisor[0:31] <- (RB)[32:63] + dividend[0:(XLEN/2)-1] <- (RA)[XLEN/2:XLEN-1] + divisor[0:(XLEN/2)-1] <- (RB)[XLEN/2:XLEN-1] if divisor != 0 then - RT[32:63] <- dividend / divisor - RT[0:31] <- undefined([0]*32) + RT[XLEN/2:XLEN-1] <- dividend / divisor + RT[0:(XLEN/2)-1] <- undefined([0]*(XLEN/2)) overflow <- 0 else - RT[0:63] <- undefined([0]*64) + RT[0:XLEN-1] <- undefined([0]*XLEN) overflow <- 1 Special Registers Altered: -- 2.30.2