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

index 44349e9a9850b3b9c5ba28fd6ab75d505f6f858a..37e74887f0a4a97560fea4b5c52e285cfe9e5f26 100644 (file)
@@ -213,16 +213,16 @@ Special Registers Altered:
 
 <!-- Section 3.3.5 Fixed-Point Load and Store with Byte Reversal Instructions page 60 -->
 
-# Store Halfword Byte-Reverse Indexed
+# Store Halfword Byte-Reverse Shifted Indexed
 
 X-Form
 
-* sthbrx RS,RA,RB
+* sthbrsx RS,RA,RB,SH
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (SH+1)
     MEM(EA, 2) <- (RS) [56:63] || (RS)[48:55]
 
 Description: