From b377ff5e3d9bef3caf95453f1853461223859cd9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 28 Oct 2022 13:23:08 +0100 Subject: [PATCH] fix dsrd pseudocode to use ROTL64 not ROTL128 --- openpower/isa/svfixedarith.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpower/isa/svfixedarith.mdwn b/openpower/isa/svfixedarith.mdwn index 0de85f27..e8232c27 100644 --- a/openpower/isa/svfixedarith.mdwn +++ b/openpower/isa/svfixedarith.mdwn @@ -75,10 +75,10 @@ VA2-Form Pseudo-code: n <- (RB)[58:63] - v <- ROTL128((RA) || [0]*64, 128-n) - mask <- ¬MASK(n, 63) - RT <- v[0:63] | ((RC) & mask) - RS <- v[64:127] + v <- ROTL64((RA), 64-n) + mask <- MASK(n, 63) + RT <- (v[0:63] & mask) | ((RC) & ¬mask) + RS <- v[0:63] & ¬mask Special Registers Altered: -- 2.30.2