From eab042d7421e00056d0c4f0abceaae833a99be7f Mon Sep 17 00:00:00 2001 From: lkcl Date: Tue, 22 Dec 2020 19:40:23 +0000 Subject: [PATCH] --- openpower/sv/vector_ops.mdwn | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openpower/sv/vector_ops.mdwn b/openpower/sv/vector_ops.mdwn index a7b539bad..c2f54e56c 100644 --- a/openpower/sv/vector_ops.mdwn +++ b/openpower/sv/vector_ops.mdwn @@ -70,15 +70,16 @@ Example to_test = iregs[RA] & testmask & mask iregs[RT+i] = popcount(to_test) -TODO: a Vector CR-based version of the same, due to CRs being used for predication. +TODO: a Vector CR-based version of the same, due to CRs being used for predication. This would use the same testing mechanism as branch: BO[0:2] +where bit 2 is inv, bits 0:1 select the bit of the CR. - def iotacr(RT, BA): + def iotacr(RT, BA, BO): mask = get_src_predicate() count = 0 for i in range(VL): if mask & (1<