From c57981b79a3295f5f435894fb8dd8df9b5355a1f Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 19 Apr 2023 18:12:32 -0700 Subject: [PATCH] change XLEN-ification See bug #1064 --- openpower/isa/fixedlogical.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openpower/isa/fixedlogical.mdwn b/openpower/isa/fixedlogical.mdwn index 8a2c1595..d3b54bc9 100644 --- a/openpower/isa/fixedlogical.mdwn +++ b/openpower/isa/fixedlogical.mdwn @@ -274,11 +274,11 @@ X-Form Pseudo-code: n <- 0 - do while n < 32 - if (RS)[63-n] = 0b1 then + do while n < XLEN/2 + if (RS)[XLEN-1-n] = 0b1 then leave n <- n + 1 - RA <- EXTZ64(n) + RA <- EXTZXL(n) Special Registers Altered: @@ -447,7 +447,7 @@ Pseudo-code: if (RS)[XLEN-1-n] = 0b1 then leave n <- n + 1 - RA <- EXTZ64(n) + RA <- EXTZXL(n) Special Registers Altered: @@ -461,14 +461,14 @@ X-Form Pseudo-code: - perm <- [0] * 8 + perm <- [0] * (XLEN/8) for i = 0 to ((XLEN/8)-1) index <- (RS)[8*i:8*i+7] if index