From e01cdc61577617faf2c777675356478d270406fe Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 29 Aug 2021 19:46:51 +0000 Subject: [PATCH] fixedarith: switch modsd 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 273baa84..a23b4023 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -782,10 +782,10 @@ Pseudo-code: dividend <- (RA) divisor <- (RB) - if (((dividend = 0x8000_0000_0000_0000) & - (divisor = [1]*64)) | - (divisor = [0]*64)) then - RT[0:63] <- undefined([0]*64) + if (((dividend = (0b1 || ([0b0] * (XLEN-1)))) & + (divisor = [1]*XLEN)) | + (divisor = [0]*XLEN)) then + RT[0:63] <- undefined([0]*XLEN) overflow <- 1 else RT <- MODS(dividend, divisor) -- 2.30.2