From 48a90aed14741e38d97fa7b1ceb31cf028684db5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 1 Sep 2021 20:29:24 +0100 Subject: [PATCH] off-by-one in srad, same as sld and srd: XLEN-6:XLEN-1 not XLEN-5:XLEN-1 --- 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 91fabd5c..02f1a71a 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -341,7 +341,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