From 736be5080bfeff709d3a71fbb154de34db1911a5 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 8 Sep 2021 01:33:46 +0100 Subject: [PATCH] --- openpower/sv/cr_ops.mdwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpower/sv/cr_ops.mdwn b/openpower/sv/cr_ops.mdwn index 4167096e1..b4baaf078 100644 --- a/openpower/sv/cr_ops.mdwn +++ b/openpower/sv/cr_ops.mdwn @@ -111,6 +111,10 @@ Rc=1 is a *co-result* accompanying the main arithmetic result, whereas for CR-based operations the CR Field or CR bit *is* itself the result of the operation. +Therefore, logically, Predicate-result needs to be adapted to +test the actual result of the CR-based instruction, rather than +test the co-resultant CR when Rc=1. + for i in range(VL): # predication test, skip all masked out elements. # skips when sz=0 -- 2.30.2