From: lkcl Date: Fri, 25 Dec 2020 19:45:28 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~889 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eb946a4c638648f85ce66965ce61acd2bd54252;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index d1408dddd..47f407849 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -4,3 +4,18 @@ do k = 0 to 7 b = VSR[VRB+32].dword[i].byte[k].bit[j] VSR[VRT+32].dword[i].byte[j].bit[k] = b + +# vector bit deposit + +vpdepd VRT,VRA,VRB + + do while(m < 64) + if VSR[VRB+32].dword[i].bit[63-m]=1 then do + result = VSR[VRA+32].dword[i].bit[63-k] + VSR[VRT+32].dword[i].bit[63-m] = result + k = k + 1 + m = m + 1 + +# vector bit extract + +other way round