From 702969dfbbe3b660c35cf1d070a0ce1ac9196bae Mon Sep 17 00:00:00 2001 From: lkcl Date: Sat, 26 Dec 2020 19:09:57 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 8447b72e6..ba373c6d5 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -20,6 +20,22 @@ vpdepd VRT,VRA,VRB other way round +# ternary bitops + +for every bit perform a lookup into a table using an 8bit immediate + +| 0.5|6.10|11.15|16.20| 21..22 | 23...30 |31| name | +| -- | -- | --- | --- | ------ | ------- |--| ------- | +| NN | RT | RA | RB | ?? | im[0:7] |Rc| XL-Form | + + for i in range(64): + idx = RT[i] << 2 | RA[i] << 1 | RB[i] + RT[i] = (imm & (1<