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

index fc7ea86071b011645c5b400ca8f97b1db8eaea21..d9dc38ac758bd767b6a6ef18f92f99301e5b9ae5 100644 (file)
@@ -220,16 +220,16 @@ Special Registers Altered:
 
 <!-- byte-reverse shifted -->
 
-# Load Halfword Byte-Reverse Indexed
+# Load Halfword Byte-Reverse Shifted Indexed
 
 X-Form
 
-* lhbrx RT,RA,RB
+* lhbrsx RT,RA,RB,sm
 
 Pseudo-code:
 
     b <- (RA|0)
-    EA <- b + (RB)
+    EA <- b + (RB) << (sm+1)
     load_data <- MEM(EA, 2)
     RT <- [0]*48 || load_data[8:15] || load_data[0:7]