added stwbrsx instruction
authorShriya Sharma <shriya@redsemiconductor.com>
Thu, 19 Oct 2023 10:55:00 +0000 (11:55 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:21 +0000 (19:26 +0000)
openpower/isa/fixedstoreshift.mdwn

index 37e74887f0a4a97560fea4b5c52e285cfe9e5f26..7e0c46360e19b61e5a65a62219c369c0a66d0e33 100644 (file)
@@ -237,16 +237,16 @@ Special Registers Altered:
 
     None
 
-# Store Word Byte-Reverse Indexed
+# Store Word Byte-Reverse Shifted Indexed
 
 X-Form
 
-* stwbrx RS,RA,RB
+* stwbrsx RS,RA,RB,SH
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (SH+1)
     MEM(EA, 4) <- ((RS)[56:63] || (RS)[48:55] || (RS)[40:47]
                    ||(RS)[32:39])