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

index 6aa6ed34c4614324ba6f8f854e468602cbbe4229..dbcafd0749954b4db874163e2786943e5bd44afb 100644 (file)
@@ -35,8 +35,8 @@ X-Form
 Pseudo-code:
 
     if L = 0 then
-        a <- EXTS((RA)[32:63])
-        b <- EXTS((RB)[32:63])
+        a <- EXTS((RA)[XLEN/2:XLEN-1])
+        b <- EXTS((RB)[XLEN/2:XLEN-1])
     else
         a <- (RA)
         b <- (RB)