From d45104a78dc6fca19828131aba95e0694d20802e Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 1 Nov 2022 20:37:42 +0300 Subject: [PATCH] Revert "Revert "https://bugs.libre-soc.org/show_bug.cgi?id=966#c4"" This reverts commit 975f1b62b0430ca93377ee1a18d8d9138d5b5254. --- openpower/isa/bitmanip.mdwn | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/openpower/isa/bitmanip.mdwn b/openpower/isa/bitmanip.mdwn index 89515ec9..5d404488 100644 --- a/openpower/isa/bitmanip.mdwn +++ b/openpower/isa/bitmanip.mdwn @@ -111,12 +111,8 @@ Z23-Form Pseudo-code: n <- (RB) - switch (sm) - case (0): sum[0:XLEN-1] = (n[0:XLEN-1-1] || [0]*1) + (RA) - case (1): sum[0:XLEN-1] = (n[0:XLEN-2-1] || [0]*2) + (RA) - case (2): sum[0:XLEN-1] = (n[0:XLEN-3-1] || [0]*3) + (RA) - default: sum[0:XLEN-1] = (n[0:XLEN-4-1] || [0]*4) + (RA) - RT <- sum + m <- sm + 1 + RT <- (n[m:XLEN-1] || [0]*m) + (RA) Special Registers Altered: @@ -132,12 +128,8 @@ Z23-Form Pseudo-code: n <- ([0]*(XLEN/2)) || (RB)[XLEN/2:XLEN-1] - switch (sm) - case (0): sum[0:XLEN-1] = (n[0:XLEN-1-1] || [0]*1) + (RA) - case (1): sum[0:XLEN-1] = (n[0:XLEN-2-1] || [0]*2) + (RA) - case (2): sum[0:XLEN-1] = (n[0:XLEN-3-1] || [0]*3) + (RA) - default: sum[0:XLEN-1] = (n[0:XLEN-4-1] || [0]*4) + (RA) - RT <- sum + m <- sm + 1 + RT <- (n[m:XLEN-1] || [0]*m) + (RA) Special Registers Altered: -- 2.30.2