(no commit message)
authorlkcl <lkcl@web>
Fri, 12 Feb 2021 19:14:36 +0000 (19:14 +0000)
committerIkiWiki <ikiwiki.info>
Fri, 12 Feb 2021 19:14:36 +0000 (19:14 +0000)
openpower/sv/bitmanip.mdwn

index 27e957eebb35b6a1155a4d6353c1059aaf20aefd..638e8787d64a2e04422f6874de4c11a4da321832 100644 (file)
@@ -265,6 +265,13 @@ uint_xlen_t bmext(RA, RB, sh)
 }
 ```
 
+bitmask extract with reverse
+```
+msb = rb[5:0];
+rev[0:msb] = ra[msb:0];
+rt = ZE(rev[msb:0]);
+```
+
 # grev
 
 based on RV bitmanip