From f73293e30d6e710a13053800aca939602ebec442 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:25:04 +0000 Subject: [PATCH] fixedshift: switch srwX 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 ab94e9a4..45696235 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -210,11 +210,11 @@ X-Form Pseudo-code: - n <- (RB)[59:63] - r <- ROTL32((RS)[32:63], 64-n) - if (RB)[58] = 0 then - m <- MASK32(n, 31) - else m <- [0]*64 + n <- (RB)[XLEN-5:XLEN-1] + r <- ROTL32((RS)[XLEN/2:XLEN-1], XLEN-n) + if (RB)[XLEN-6] = 0 then + m <- MASK32(n, ((XLEN/2)-1)) + else m <- [0]*XLEN RA <- r & m Special Registers Altered: -- 2.30.2