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=6c322ecc2b5867f5ef38a7c4194fe25b85325c8e;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