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=53c2a1a2efe6f731474aad67e6fdd98f81efb981;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