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

index eaa33529b8d9b8159e05517262eb258fa96609c1..0d43c5c128fe96fb48673e09564720e84b8ff986 100644 (file)
@@ -122,16 +122,16 @@ Special Registers Altered:
 
     None
 
-# Load Word and Zero Indexed
+# Load Word and Zero Shifted Indexed
 
 X-Form
 
-* lwzx RT,RA,RB
+* lwzsx RT,RA,RB,sm
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (sm+1)
     RT <- [0] * 32 || MEM(EA, 4)
 
 Special Registers Altered: