From f5ee30e42beee01670bc2c0e136c9188a2910107 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:00:52 +0000 Subject: [PATCH] fixedshift: switch sradiX to XLEN --- openpower/isa/fixedshift.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 6e73a683..0d4fb6c8 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -319,10 +319,10 @@ XS-Form Pseudo-code: n <- sh - r <- ROTL64((RS), 64-n) - m <- MASK(n, 63) + r <- ROTL64((RS), XLEN-n) + m <- MASK(n, (XLEN-1)) s <- (RS)[0] - RA <- r&m | ([s]*64)& ¬m + RA <- r&m | ([s]*XLEN)& ¬m carry <- s & ((r& ¬m) != 0) CA <- carry CA32 <- carry -- 2.30.2