From: lkcl Date: Tue, 15 Feb 2022 05:54:16 +0000 (+0000) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd5baa01226a1211ed673904f62b115724a0b132;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index e2803b332..269e9bff3 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -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