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

index 990c9ceeaf9bb6d888ff90e7e8d35e889670d5dc..d38616c87dcb8010ada066ffad59a27c4e4ecef8 100644 (file)
@@ -62,16 +62,16 @@ Special Registers Altered:
 
     None
 
-# Store Halfword Indexed
+# Store Halfword Shifted Indexed
 
 X-Form
 
-* sthx RS,RA,RB
+* sthsx RS,RA,RB,SH
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (SH+1)
     MEM(EA, 2) <- (RS)[XLEN-16:XLEN-1]
 
 Description: