(no commit message)
authorlkcl <lkcl@web>
Tue, 15 Feb 2022 05:54:16 +0000 (05:54 +0000)
committerIkiWiki <ikiwiki.info>
Tue, 15 Feb 2022 05:54:16 +0000 (05:54 +0000)
openpower/sv/bitmanip.mdwn

index e2803b332287b585e2f86bcf40a97bbb15ddd9cf..269e9bff3bc28b5ef8bb603579068b4094f033fe 100644 (file)
@@ -316,6 +316,12 @@ uint_xlen_t bmextrev(RA, RB, sh)
 | NN | RT | RA  | RB  | sh  | 0   111 |Rc| bmrevi |
 
 
+# grevlut
+
+    lut2(imm, a, b):
+        idx = b << 1 | a
+        return imm[idx] # idx by LSB0 order
+
 
 # grev