From 1dcf13c417e107eeae33b1644f3c382a715c8043 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 12 Feb 2021 19:14:36 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 27e957eeb..638e8787d 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -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 -- 2.30.2