From 6c313817e4356ce6f9b47f76340704cde9f6c9ac 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