From 75d9fc62dc34efeba2b395564bd1579ed29a0c14 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 19 Apr 2023 17:58:19 -0700 Subject: [PATCH] change extsb/h/w to scale based on XLEN rather than extending from a fixed width See https://bugs.libre-soc.org/show_bug.cgi?id=1061 --- openpower/isa/fixedlogical.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpower/isa/fixedlogical.mdwn b/openpower/isa/fixedlogical.mdwn index 28311ce3..8a2c1595 100644 --- a/openpower/isa/fixedlogical.mdwn +++ b/openpower/isa/fixedlogical.mdwn @@ -223,7 +223,7 @@ X-Form Pseudo-code: - RA <- EXTSXL(RS, 8) + RA <- EXTSXL(RS, XLEN/8) Special Registers Altered: @@ -238,7 +238,7 @@ X-Form Pseudo-code: - RA <- EXTSXL(RS, 16) + RA <- EXTSXL(RS, XLEN/4) Special Registers Altered: @@ -389,7 +389,7 @@ X-Form Pseudo-code: - RA <- EXTSXL(RS, 32) + RA <- EXTSXL(RS, XLEN/2) Special Registers Altered: -- 2.30.2