From dd0a3f5bbeb3d236820f212a924b97c81094c224 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 24 Aug 2021 12:01:25 +0000 Subject: [PATCH] fixedarith: switch modud to XLEN --- openpower/isa/fixedarith.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2