From 6c322ecc2b5867f5ef38a7c4194fe25b85325c8e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 27 Nov 2023 13:14:43 +0000 Subject: [PATCH] add first gather instruction pseudocode --- openpower/isa/bitmanip.mdwn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- 2.30.2