From 20d425183afc9bd6f77e0fc0e6ee26c732449bf4 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:01:21 +0000 Subject: [PATCH] fixedshift: switch extswsliX to XLEN --- openpower/isa/fixedshift.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 0d4fb6c8..8bbc8f0a 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -367,8 +367,8 @@ XS-Form Pseudo-code: n <- sh - r <- ROTL64(EXTS64(RS[32:63]), n) - m <- MASK(0, 63-n) + r <- ROTL64(EXTS64(RS[XLEN/2:XLEN-1]), n) + m <- MASK(0, XLEN-1-n) RA <- r & m Special Registers Altered: -- 2.30.2