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).
45 The byte in storage addressed by EA is loaded into
46 RT[56:63]. RT[0:55] are set to 0.
49 Special Registers Altered:
53 # Load Byte and Zero Shifted with Update Indexed
61 EA <- (RA) + (RB) << (SH+1)
62 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
65 Special Registers Altered:
69 # Load Halfword and Zero Shifted Indexed
78 EA <- b + (RB) << (SH+1)
79 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
81 Special Registers Altered:
85 # Load Halfword and Zero Shifted with Update Indexed
93 EA <- (RA) + (RB) << (SH+1)
94 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
97 Special Registers Altered:
101 # Load Halfword Algebraic Shifted Indexed
110 EA <- b + (RB) << (SH+1)
111 RT <- EXTS(MEM(EA, 2))
113 Special Registers Altered:
117 # Load Halfword Algebraic Shifted with Update Indexed
125 EA <- (RA) + (RB) << (SH+1)
126 RT <- EXTS(MEM(EA, 2))
129 Special Registers Altered:
133 # Load Word and Zero Shifted Indexed
142 EA <- b + (RB) << (SH+1)
143 RT <- [0] * 32 || MEM(EA, 4)
145 Special Registers Altered:
149 # Load Word and Zero Shifted with Update Indexed
157 EA <- (RA) + (RB) << (SH+1)
158 RT <- [0] * 32 || MEM(EA, 4)
161 Special Registers Altered:
165 # Load Word Algebraic Shifted Indexed
174 EA <- b + (RB) << (SH+1)
175 RT <- EXTS(MEM(EA, 4))
177 Special Registers Altered:
181 # Load Word Algebraic Shifted with Update Indexed
189 EA <- (RA) + (RB) << (SH+1)
190 RT <- EXTS(MEM(EA, 4))
193 Special Registers Altered:
197 # Load Doubleword Shifted Indexed
206 EA <- b + (RB) << (SH+1)
209 Special Registers Altered:
213 # Load Doubleword Shifted with Update Indexed
221 EA <- (RA) + (RB) << (SH+1)
225 Special Registers Altered:
229 <!-- byte-reverse shifted -->
231 # Load Halfword Byte-Reverse Shifted Indexed
240 EA <- b + (RB) << (SH+1)
241 load_data <- MEM(EA, 2)
242 RT <- [0]*48 || load_data[8:15] || load_data[0:7]
244 Special Registers Altered:
248 # Load Word Byte-Reverse Shifted Indexed
257 EA <- b + (RB) << (SH+1)
258 load_data <- MEM(EA, 4)
259 RT <- ([0] * 32 || load_data[24:31] || load_data[16:23]
260 || load_data[8:15] || load_data[0:7])
262 Special Registers Altered:
267 <!-- Section 3.3.5.1 64-Bit Load and Store with Byte Reversal Instructions page 61 -->
269 # Load Doubleword Byte-Reverse Shifted Indexed
278 EA <- b + (RB) << (SH+1)
279 load_data <- MEM(EA, 8)
280 RT <- (load_data[56:63] || load_data[48:55]
281 || load_data[40:47] || load_data[32:39]
282 || load_data[24:31] || load_data[16:23]
283 || load_data[8:15] || load_data[0:7])
285 Special Registers Altered: