Added English language description for sthupsx instruction
authorShriya Sharma <shriya@redsemiconductor.com>
Fri, 17 Nov 2023 15:36:11 +0000 (15:36 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 1 Dec 2023 14:02:55 +0000 (14:02 +0000)
openpower/isa/pifixedstoreshift.mdwn

index 1f2694a0e80d9ec5f8b2d96648768da5f82a588d..b8543c4814eb50deb9234cb83ff00af8a37f0cef 100644 (file)
@@ -38,18 +38,19 @@ Special Registers Altered:
 
 Z23-Form
 
-* sthupsx RS,RA,RB
+* sthupsx RS,RA,RB,SH
 
 Pseudo-code:
 
-    EA <- (RA) + (RB)
+    EA <- (RA) + (RB)<<(SH+1)
     ea <- (RA)
     MEM(ea, 2) <- (RS)[XLEN-16:XLEN-1]
     RA <- EA
 
 Description:
 
-    Let the effective address (EA) be the sum (RA)+ (RB).
+    Let the effective address (EA) be the sum of the contents of
+    register RB shifted by (SH+1), and the contents of register RA.
 
     (RS)[56:63] are stored into the byte in storage addressed by EA.