From 8eb946a4c638648f85ce66965ce61acd2bd54252 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 25 Dec 2020 19:45:28 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.30.2