add first gather instruction pseudocode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 27 Nov 2023 13:14:43 +0000 (13:14 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 27 Nov 2023 13:14:43 +0000 (13:14 +0000)
openpower/isa/bitmanip.mdwn

index 3b0cc8e8da302a7e7a21b0ed69b329e914be8327..1f8081d7a2df09c165c982f668f52dc08f4fdec4 100644 (file)
@@ -2,6 +2,25 @@
 <!-- https://libre-soc.org/openpower/sv/bitmanip/ -->
 <!-- These instructions are *not yet official* -->
 
+# 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