1 <!-- This defines instructions described in PowerISA Version 3.0 B Book 1 -->
3 <!-- This defines instructions that load from RAM to a register -->
5 <!-- Note that these pages also define equivalent store instructions, -->
6 <!-- these are described in fixedstore.mdwn -->
8 <!-- Section 3.3.2 This defines the Fixed-Point Load Instructions pages 47 - 53 -->
9 <!-- Section 3.3.3 Fixed-Point Store Instructions pages 54 - 56 -->
10 <!-- Section 3.3.3.1 64-bit Fixed-Point Store Instructions pages 57 -->
11 <!-- Section 3.3.4 Fixed Point Load and Store Quadword Instructions pages 58 - 59 -->
12 <!-- Section 3.3.5 Fixed-Point Load and Store with Byte Reversal Instructions page 60 -->
13 <!-- Section 3.3.5.1 64-Bit Load and Store with Byte Reversal Instructions page 61 -->
14 <!-- Section 3.3.6 Fixed-Point Load and Store Multiple Instructions page 62 -->
18 <!-- Section 3.3.2 This defines the Fixed-Point Load Instructions pages 47 - 53 -->
20 <!-- The byte, halfword, word, or doubleword in storage addressed by EA is loaded -->
21 <!-- into register RT. -->
23 <!-- Many of the Load instructions have an “update” form, in which register RA is -->
24 <!-- updated with the effective address. For these forms, if RA!=0 and RA!=RT, the -->
25 <!-- effective address is placed into register RA and the storage element (byte, -->
26 <!-- halfword, word, or doubleword) addressed by EA is loaded into RT. -->
29 # Load Byte and Zero Shifted Indexed
38 EA <- b + (RB) << (SH+1)
39 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
43 Let the effective address (EA) be the sum of the contents of
44 register RB shifted by (SH+1), and (RA|0).
46 The byte in storage addressed by EA is loaded into
47 RT[56:63]. RT[0:55] are set to 0.
50 Special Registers Altered:
54 # Load Byte and Zero Shifted with Update Indexed
62 EA <- (RA) + (RB) << (SH+1)
63 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
68 Let the effective address (EA) be the sum of the contents of
69 register RB shifted by (SH+1), and (RA).
71 The byte in storage addressed by EA is
72 loaded into RT[56:63] . RT[0:55] are set to 0.
74 EA is placed into register RA.
76 If RA=0, the instruction form is invalid.
78 Special Registers Altered:
82 # Load Halfword and Zero Shifted Indexed
91 EA <- b + (RB) << (SH+1)
92 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
96 Let the effective address (EA) be the sum of the contents of
97 register RB shifted by (SH+1), and (RA|0).
99 The halfword in storage addressed by EA is loaded into
100 RT[48:63]. RT[0:47] are set to 0.
102 Special Registers Altered:
106 # Load Halfword and Zero Shifted with Update Indexed
114 EA <- (RA) + (RB) << (SH+1)
115 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
120 Let the effective address (EA) be the sum of the contents of
121 register RB shifted by (SH+1), and (RA).
123 The halfword in storage addressed by EA is loaded into RT[48:63].
124 RT[0:47] are set to 0.
126 EA is placed into register RA.
128 If RA=0, the instruction form is invalid.
130 Special Registers Altered:
134 # Load Halfword Algebraic Shifted Indexed
143 EA <- b + (RB) << (SH+1)
144 RT <- EXTS(MEM(EA, 2))
148 Let the effective address (EA) be the sum of the contents of
149 register RB shifted by (SH+1), and (RA|0).
151 The halfword in storage addressed by EA is loaded into RT[48:63].
152 RT[0:47] are filled with a copy of bit 0 of the loaded halfword.
154 Special Registers Altered:
158 # Load Halfword Algebraic Shifted with Update Indexed
166 EA <- (RA) + (RB) << (SH+1)
167 RT <- EXTS(MEM(EA, 2))
170 Special Registers Altered:
174 # Load Word and Zero Shifted Indexed
183 EA <- b + (RB) << (SH+1)
184 RT <- [0] * 32 || MEM(EA, 4)
186 Special Registers Altered:
190 # Load Word and Zero Shifted with Update Indexed
198 EA <- (RA) + (RB) << (SH+1)
199 RT <- [0] * 32 || MEM(EA, 4)
202 Special Registers Altered:
206 # Load Word Algebraic Shifted Indexed
215 EA <- b + (RB) << (SH+1)
216 RT <- EXTS(MEM(EA, 4))
218 Special Registers Altered:
222 # Load Word Algebraic Shifted with Update Indexed
230 EA <- (RA) + (RB) << (SH+1)
231 RT <- EXTS(MEM(EA, 4))
234 Special Registers Altered:
238 # Load Doubleword Shifted Indexed
247 EA <- b + (RB) << (SH+1)
250 Special Registers Altered:
254 # Load Doubleword Shifted with Update Indexed
262 EA <- (RA) + (RB) << (SH+1)
266 Special Registers Altered:
270 <!-- byte-reverse shifted -->
272 # Load Halfword Byte-Reverse Shifted Indexed
281 EA <- b + (RB) << (SH+1)
282 load_data <- MEM(EA, 2)
283 RT <- [0]*48 || load_data[8:15] || load_data[0:7]
285 Special Registers Altered:
289 # Load Word Byte-Reverse Shifted Indexed
298 EA <- b + (RB) << (SH+1)
299 load_data <- MEM(EA, 4)
300 RT <- ([0] * 32 || load_data[24:31] || load_data[16:23]
301 || load_data[8:15] || load_data[0:7])
303 Special Registers Altered:
308 <!-- Section 3.3.5.1 64-Bit Load and Store with Byte Reversal Instructions page 61 -->
310 # Load Doubleword Byte-Reverse Shifted Indexed
319 EA <- b + (RB) << (SH+1)
320 load_data <- MEM(EA, 8)
321 RT <- (load_data[56:63] || load_data[48:55]
322 || load_data[40:47] || load_data[32:39]
323 || load_data[24:31] || load_data[16:23]
324 || load_data[8:15] || load_data[0:7])
326 Special Registers Altered: