From c274bcd856a123114a4a0a4ee86271e00989a094 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 25 Aug 2021 15:09:14 +0000 Subject: [PATCH] fixedlogical: switch cnttzd to XLEN --- openpower/isa/fixedlogical.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/isa/fixedlogical.mdwn b/openpower/isa/fixedlogical.mdwn index bb692d73..c301678c 100644 --- a/openpower/isa/fixedlogical.mdwn +++ b/openpower/isa/fixedlogical.mdwn @@ -447,8 +447,8 @@ X-Form Pseudo-code: n <- 0 - do while n < 64 - if (RS)[63-n] = 0b1 then + do while n < XLEN + if (RS)[XLEN-1-n] = 0b1 then leave n <- n + 1 RA <- EXTZ64(n) -- 2.30.2