comparefixed: switch cmprb to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sat, 4 Sep 2021 17:37:55 +0000 (17:37 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sat, 4 Sep 2021 18:05:00 +0000 (18:05 +0000)
openpower/isa/comparefixed.mdwn

index 34fb62b7d29c33ba6f2abd03c6df40912307a073..ea4248cb8490cbad9b57a78f632a18b2bac7b5c6 100644 (file)
@@ -99,11 +99,11 @@ X-Form
 
 Pseudo-code:
 
-    src1    <- EXTZ((RA)[56:63])
-    src21hi <- EXTZ((RB)[32:39])
-    src21lo <- EXTZ((RB)[40:47])
-    src22hi <- EXTZ((RB)[48:55])
-    src22lo <- EXTZ((RB)[56:63])
+    src1    <- EXTZ((RA)[XLEN-8:XLEN-1])
+    src21hi <- EXTZ((RB)[XLEN-32:XLEN-23])
+    src21lo <- EXTZ((RB)[XLEN-24:XLEN-17])
+    src22hi <- EXTZ((RB)[XLEN-16:XLEN-9])
+    src22lo <- EXTZ((RB)[XLEN-8:XLEN-1])
     if L=0 then
        in_range <-  (src22lo  <= src1) & (src1 <=  src22hi)
     else