1 <!-- This defines DRAFT instructions that are to be proposed for SV -->
3 <!-- This defines instructions that load from RAM to a register -->
4 <!-- Effective Address is always RA, and the usual EA is stored late in RA -->
6 <!-- Note that these pages also define equivalent store instructions, -->
7 <!-- these are described in pifixedstoreshift.mdwn -->
8 <!-- https://bugs.libre-soc.org/show_bug.cgi?id=1055 -->
9 <!-- https://libre-soc.org/openpower/sv/rfc/ls004/ -->
14 # Load Byte and Zero with Post-Update Indexed
23 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
28 Let the effective address (EA) be the sum of the contents of
29 register RB shifted by (SH+1), and the contents of register RA.
31 The byte in storage addressed by EA is loaded into RT[56:63].
32 RT[0:55] are set to 0.
34 The sum (RA) + (RB) is placed into register RA.
36 If RA=0 or RA=RT, the instruction form is invalid.
38 Special Registers Altered:
42 # Load Halfword and Zero with Post-Update Indexed
51 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
56 Let the effective address (EA) be register RA.
57 The halfword in storage addressed by EA is loaded into RT[48:63].
58 RT[0:47] are set to 0.
60 The sum (RA) + (RB) is placed into register RA.
62 If RA=0 or RA=RT, the instruction form is invalid.
64 Special Registers Altered:
68 # Load Halfword Algebraic with Post-Update Indexed
77 RT <- EXTS(MEM(EA, 2))
82 Let the effective address (EA) be the register RA.
84 The halfword in storage addressed by EA is loaded into RT[48:63].
85 RT[0:47] are filled with a copy of bit 0 of the loaded halfword.
87 The sum (RA) + (RB) is placed into register RA.
89 If RA=0 or RA=RT, the instruction form is invalid.
91 Special Registers Altered:
95 # Load Word and Zero with Post-Update Indexed
104 RT <- [0] * 32 || MEM(EA, 4)
109 Let the effective address (EA) be the register RA.
111 The halfword in storage addressed by EA is loaded into RT[48:63].
112 RT[0:47] are filled with a copy of bit 0 of the loaded halfword.
114 The sum (RA) + (RB) is placed into register RA.
116 If RA=0 or RA=RT, the instruction form is invalid.
118 Special Registers Altered:
122 # Load Word Algebraic with Post-Update Indexed
131 RT <- EXTS(MEM(EA, 4))
136 Let the effective address (EA) be the register RA.
138 The word in storage addressed by EA is loaded into RT[32:63].
139 RT[0:31] are filled with a copy of bit 0 of the loaded word.
141 The sum (RA) + (RB) is placed into register RA.
143 If RA=0 or RA=RT, the instruction form is invalid.
145 Special Registers Altered:
149 # Load Doubleword with Post-Update Indexed
163 Let the effective address (EA) be the register RA.
165 The doubleword in storage addressed by EA is loaded into RT.
167 The sum (RA) + (RB) is placed into register RA.
169 If RA=0 or RA=RT, the instruction form is invalid.
171 Special Registers Altered: