comparefixed: switch cmpli to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sat, 4 Sep 2021 17:29:28 +0000 (17:29 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sat, 4 Sep 2021 17:29:28 +0000 (17:29 +0000)
openpower/isa/comparefixed.mdwn

index dbcafd0749954b4db874163e2786943e5bd44afb..c2f93ec77371b5003724a3650434c5a4074a428b 100644 (file)
@@ -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 <- 0b100
-    else if a >u ([0]*48 || UI) then c <- 0b010
+    if      a <u ([0]*(XLEN-16) || UI) then c <- 0b100
+    else if a >u ([0]*(XLEN-16) || UI) then c <- 0b010
     else                             c <- 0b001
     CR[4*BF+32:4*BF+35] <- c || XER[SO]