From: Dmitry Selyutin Date: Tue, 24 Aug 2021 12:01:25 +0000 (+0000) Subject: fixedarith: switch modud to XLEN X-Git-Tag: xlen-bcd~68 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd0a3f5bbeb3d236820f212a924b97c81094c224;p=openpower-isa.git fixedarith: switch modud to XLEN --- diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index 736e580a..c8aeb2f6 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -805,8 +805,8 @@ Pseudo-code: dividend <- (RA) divisor <- (RB) - if (divisor = [0]*64) then - RT[0:63] <- undefined([0]*64) + if (divisor = [0]*XLEN) then + RT[0:XLEN-1] <- undefined([0]*XLEN) overflow <- 1 else RT <- dividend % divisor