From: Dmitry Selyutin Date: Sat, 4 Sep 2021 17:37:55 +0000 (+0000) Subject: comparefixed: switch cmprb to XLEN X-Git-Tag: xlen-bcd~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1e32608235e5e984046daf0e8a4876aa16025f1;p=openpower-isa.git comparefixed: switch cmprb to XLEN --- diff --git a/openpower/isa/comparefixed.mdwn b/openpower/isa/comparefixed.mdwn index 34fb62b7..ea4248cb 100644 --- a/openpower/isa/comparefixed.mdwn +++ b/openpower/isa/comparefixed.mdwn @@ -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