change extsb/h/w to scale based on XLEN rather than extending from a fixed width
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 20 Apr 2023 00:58:19 +0000 (17:58 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:17 +0000 (19:51 +0100)
See https://bugs.libre-soc.org/show_bug.cgi?id=1061

openpower/isa/fixedlogical.mdwn

index 28311ce33583aec9a3eba5c5bdf20304b1fea263..8a2c15954e4e1e6e2a9c1f00e83968e1aa9285d2 100644 (file)
@@ -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: