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

index c2f93ec77371b5003724a3650434c5a4074a428b..34fb62b7d29c33ba6f2abd03c6df40912307a073 100644 (file)
@@ -77,8 +77,8 @@ X-Form
 Pseudo-code:
 
     if L = 0 then
-        a <- [0]*32 || (RA)[32:63]
-        b <- [0]*32 || (RB)[32:63]
+        a <- [0]*(XLEN/2) || (RA)[XLEN/2:XLEN-1]
+        b <- [0]*(XLEN/2) || (RB)[XLEN/2:XLEN-1]
     else
         a <-  (RA)
         b <-  (RB)