From: Luke Kenneth Casson Leighton Date: Mon, 27 Nov 2023 13:14:43 +0000 (+0000) Subject: add first gather instruction pseudocode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c313817e4356ce6f9b47f76340704cde9f6c9ac;p=openpower-isa.git add first gather instruction pseudocode --- diff --git a/openpower/isa/bitmanip.mdwn b/openpower/isa/bitmanip.mdwn index 3b0cc8e8..1f8081d7 100644 --- a/openpower/isa/bitmanip.mdwn +++ b/openpower/isa/bitmanip.mdwn @@ -2,6 +2,25 @@ +# Gather instruction + +X-Form + +* gbbd RT,RA + +Pseudo-code: + + result <- [0] * 64 + do j = 0 to 7 + do k = 0 to 7 + b <- (RA)[k*8+j] + result[j*8+k] <- b + RT <- result + +Special Registers Altered: + + CR0 (if Rc=1) + # Ternary Bitwise Logic Immediate TLI-Form