From a88be70080d9d3eda3a5c80c7a9fead7a7393120 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:28:26 +0000 Subject: [PATCH] fixedshift: switch sradX to XLEN --- openpower/isa/fixedshift.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 96d781b1..91fabd5c 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -341,13 +341,13 @@ X-Form Pseudo-code: - n <- (RB)[58:63] - r <- ROTL64((RS), 64-n) - if (RB)[57] = 0 then - m <- MASK(n, 63) - else m <- [0]*64 + n <- (RB)[XLEN-5:XLEN-1] + r <- ROTL64((RS), XLEN-n) + if (RB)[XLEN-7] = 0 then + m <- MASK(n, (XLEN-1)) + else m <- [0]*XLEN 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