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

index e1a365f2a2af11244e8263405398e2ca1109651f..6aa6ed34c4614324ba6f8f854e468602cbbe4229 100644 (file)
@@ -15,7 +15,7 @@ D-Form
 
 Pseudo-code:
 
-    if L = 0 then a <- EXTS((RA)[32:63])
+    if L = 0 then a <- EXTS((RA)[XLEN/2:XLEN-1])
     else a <-  (RA)
     if      a < EXTS(SI) then c <- 0b100
     else if a > EXTS(SI) then c <- 0b010