From b59c209b7b7087b9b7d7161524aff3fbaa9d9861 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 1 Sep 2021 20:26:33 +0100 Subject: [PATCH] off-by-one in sld and srd, XLEN-6:XLEN-1 not XLEN-5:XLEN-1 --- 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 8061d8fa..96d781b1 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -278,7 +278,7 @@ X-Form Pseudo-code: - n <- (RB)[XLEN-5:XLEN-1] + n <- (RB)[XLEN-6:XLEN-1] r <- ROTL64((RS), n) if (RB)[XLEN-7] = 0 then m <- MASK(0, XLEN-1-n) @@ -298,7 +298,7 @@ X-Form Pseudo-code: - n <- (RB)[XLEN-5:XLEN-1] + n <- (RB)[XLEN-6:XLEN-1] r <- ROTL64((RS), XLEN-n) if (RB)[XLEN-7] = 0 then m <- MASK(n, (XLEN-1)) -- 2.30.2