From 3c2cac8b2b3cdc472071eabaa9a50c5f0fd9c3e4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 21 Oct 2022 12:28:43 +0100 Subject: [PATCH] use XLEN/2 for ROTL32 in fixedshift.mdwn --- openpower/isa/fixedshift.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 9d90da3c..db59a6fa 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -38,7 +38,7 @@ M-Form Pseudo-code: n <- (RB)[XLEN-5:XLEN-1] - r <- ROTL32((RS)[XLEN-32:XLEN-1], n) + r <- ROTL32((RS)[XLEN/2:XLEN-1], n) m <- MASK32(MB, ME) RA <- r & m -- 2.30.2