From c49b7007f81181bbc234d0064423c2a040fa2fc3 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:00:08 +0000 Subject: [PATCH] fixedshift: switch srawiX to XLEN --- openpower/isa/fixedshift.mdwn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index ecef4c3a..6e73a683 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -231,11 +231,11 @@ X-Form Pseudo-code: n <- SH - r <- ROTL32((RS)[32:63], 64-n) - m <- MASK32(n, 31) - s <- (RS)[32] - RA <- r&m | ([s]*64)& ¬m - carry <- s & ((r&¬m)[32:63] != 0) + r <- ROTL32((RS)[XLEN/2:XLEN-1], 64-n) + m <- MASK32(n, ((XLEN/2)-1)) + s <- (RS)[XLEN/2] + RA <- r&m | ([s]*XLEN)& ¬m + carry <- s & ((r&¬m)[XLEN/2:XLEN-1] != 0) CA <- carry CA32 <- carry -- 2.30.2