From 42e799cd6ed350b3bd3e6b84c97b9e09c76da0a1 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 4 Sep 2021 17:29:28 +0000 Subject: [PATCH] comparefixed: switch cmpli to XLEN --- openpower/isa/comparefixed.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpower/isa/comparefixed.mdwn b/openpower/isa/comparefixed.mdwn index dbcafd07..c2f93ec7 100644 --- a/openpower/isa/comparefixed.mdwn +++ b/openpower/isa/comparefixed.mdwn @@ -57,10 +57,10 @@ D-Form Pseudo-code: - if L = 0 then a <- [0]*32 || (RA)[32:63] + if L = 0 then a <- [0]*(XLEN/2) || (RA)[XLEN/2:XLEN-1] else a <- (RA) - if a u ([0]*48 || UI) then c <- 0b010 + if a u ([0]*(XLEN-16) || UI) then c <- 0b010 else c <- 0b001 CR[4*BF+32:4*BF+35] <- c || XER[SO] -- 2.30.2