added stwsx instruction
authorShriya Sharma <shriya@redsemiconductor.com>
Thu, 19 Oct 2023 10:49:52 +0000 (11:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 29 Oct 2023 08:54:37 +0000 (08:54 +0000)
openpower/isa/fixedstoreshift.mdwn

index 1f377cd1c58afefc573b85cc0cd30c34bd6be118..396b3017fef0a0badbe669e8e1bbccbbdb15f884 100644 (file)
@@ -110,16 +110,16 @@ Special Registers Altered:
 
     None
 
-# Store Word Indexed
+# Store Word Shifted Indexed
 
 X-Form
 
-* stwx RS,RA,RB
+* stwsx RS,RA,RB,SH
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (SH+1)
     MEM(EA, 4) <- (RS)[XLEN-32:XLEN-1]
 
 Description: