]>
Commit | Line | Data |
---|---|---|
2a53cff4 BK |
1 | # |
2 | # RISC-V translation routines for the RVXI Base Integer Instruction Set. | |
3 | # | |
4 | # Copyright (c) 2018 Peer Adelt, peer.adelt@hni.uni-paderborn.de | |
5 | # Bastian Koppelmann, kbastian@mail.uni-paderborn.de | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify it | |
8 | # under the terms and conditions of the GNU General Public License, | |
9 | # version 2 or later, as published by the Free Software Foundation. | |
10 | # | |
11 | # This program is distributed in the hope it will be useful, but WITHOUT | |
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
14 | # more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License along with | |
17 | # this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | # Fields: | |
6f0e74ff | 20 | %rs3 27:5 |
3cca75a6 BK |
21 | %rs2 20:5 |
22 | %rs1 15:5 | |
2a53cff4 | 23 | %rd 7:5 |
daf866b6 | 24 | %sh5 20:5 |
6bf4bbed | 25 | %sh6 20:6 |
2a53cff4 | 26 | |
00718208 | 27 | %sh7 20:7 |
771fbe15 | 28 | %csr 20:12 |
6f0e74ff | 29 | %rm 12:3 |
751538d5 | 30 | %nf 29:3 !function=ex_plus_1 |
b73a987b | 31 | |
2a53cff4 | 32 | # immediates: |
3cca75a6 | 33 | %imm_i 20:s12 |
c1000d4e | 34 | %imm_s 25:s7 7:5 |
3cca75a6 BK |
35 | %imm_b 31:s1 7:1 25:6 8:4 !function=ex_shift_1 |
36 | %imm_j 31:s1 12:8 20:1 21:10 !function=ex_shift_1 | |
2a53cff4 | 37 | %imm_u 12:s20 !function=ex_shift_12 |
68d19b58 | 38 | %imm_bs 30:2 !function=ex_shift_3 |
9e33e175 | 39 | %imm_rnum 20:4 |
2a53cff4 | 40 | |
3cca75a6 | 41 | # Argument sets: |
e7617997 | 42 | &empty |
3cca75a6 | 43 | &b imm rs2 rs1 |
7a50d3e2 | 44 | &i imm rs1 rd |
e7617997 | 45 | &j imm rd |
f2ab1728 | 46 | &r rd rs1 rs2 |
43824018 | 47 | &r2 rd rs1 |
f33960df | 48 | &r2_s rs1 rs2 |
e7617997 RH |
49 | &s imm rs1 rs2 |
50 | &u imm rd | |
b73a987b | 51 | &shift shamt rs1 rd |
3b77c289 | 52 | &atomic aq rl rs2 rs1 rd |
43740e3a | 53 | &rmrr vm rd rs1 rs2 |
d9e4ce72 | 54 | &rmr vm rd rs2 |
751538d5 LZ |
55 | &r2nfvm vm rd rs1 nf |
56 | &rnfvm vm rd rs1 rs2 nf | |
68d19b58 | 57 | &k_aes shamt rs2 rs1 rd |
3cca75a6 | 58 | |
2a53cff4 | 59 | # Formats 32: |
f2ab1728 | 60 | @r ....... ..... ..... ... ..... ....... &r %rs2 %rs1 %rd |
7a50d3e2 | 61 | @i ............ ..... ... ..... ....... &i imm=%imm_i %rs1 %rd |
3cca75a6 | 62 | @b ....... ..... ..... ... ..... ....... &b imm=%imm_b %rs2 %rs1 |
e7617997 RH |
63 | @s ....... ..... ..... ... ..... ....... &s imm=%imm_s %rs2 %rs1 |
64 | @u .................... ..... ....... &u imm=%imm_u %rd | |
65 | @j .................... ..... ....... &j imm=%imm_j %rd | |
2a53cff4 | 66 | |
00718208 | 67 | @sh ...... ...... ..... ... ..... ....... &shift shamt=%sh7 %rs1 %rd |
771fbe15 | 68 | @csr ............ ..... ... ..... ....... %csr %rs1 %rd |
b73a987b | 69 | |
3b77c289 BK |
70 | @atom_ld ..... aq:1 rl:1 ..... ........ ..... ....... &atomic rs2=0 %rs1 %rd |
71 | @atom_st ..... aq:1 rl:1 ..... ........ ..... ....... &atomic %rs2 %rs1 %rd | |
72 | ||
6f0e74ff BK |
73 | @r4_rm ..... .. ..... ..... ... ..... ....... %rs3 %rs2 %rs1 %rm %rd |
74 | @r_rm ....... ..... ..... ... ..... ....... %rs2 %rs1 %rm %rd | |
75 | @r2_rm ....... ..... ..... ... ..... ....... %rs1 %rm %rd | |
43824018 | 76 | @r2 ....... ..... ..... ... ..... ....... &r2 %rs1 %rd |
751538d5 | 77 | @r2_nfvm ... ... vm:1 ..... ..... ... ..... ....... &r2nfvm %nf %rs1 %rd |
d9e4ce72 | 78 | @r2_vm ...... vm:1 ..... ..... ... ..... ....... &rmr %rs2 %rd |
126bec3f | 79 | @r1_vm ...... vm:1 ..... ..... ... ..... ....... %rd |
751538d5 | 80 | @r_nfvm ... ... vm:1 ..... ..... ... ..... ....... &rnfvm %nf %rs2 %rs1 %rd |
2843420a | 81 | @r2rd ....... ..... ..... ... ..... ....... %rs2 %rd |
43740e3a | 82 | @r_vm ...... vm:1 ..... ..... ... ..... ....... &rmrr %rs2 %rs1 %rd |
3a6f8f68 | 83 | @r_vm_1 ...... . ..... ..... ... ..... ....... &rmrr vm=1 %rs2 %rs1 %rd |
f020a7a1 | 84 | @r_vm_0 ...... . ..... ..... ... ..... ....... &rmrr vm=0 %rs2 %rs1 %rd |
6b5c8eb3 | 85 | @r2_zimm11 . zimm:11 ..... ... ..... ....... %rs1 %rd |
34a2c2d8 | 86 | @r2_zimm10 .. zimm:10 ..... ... ..... ....... %rs1 %rd |
8c5362ac | 87 | @r2_s ....... ..... ..... ... ..... ....... %rs2 %rs1 |
6f0e74ff | 88 | |
895c412c | 89 | @hfence_gvma ....... ..... ..... ... ..... ....... %rs2 %rs1 |
b8429ded | 90 | @hfence_vvma ....... ..... ..... ... ..... ....... %rs2 %rs1 |
895c412c | 91 | |
4ba79c47 BK |
92 | @sfence_vma ....... ..... ..... ... ..... ....... %rs2 %rs1 |
93 | @sfence_vm ....... ..... ..... ... ..... ....... %rs1 | |
94 | ||
68d19b58 | 95 | @k_aes .. ..... ..... ..... ... ..... ....... &k_aes shamt=%imm_bs %rs2 %rs1 %rd |
9e33e175 | 96 | @i_aes .. ..... ..... ..... ... ..... ....... &i imm=%imm_rnum %rs1 %rd |
68d19b58 | 97 | |
daf866b6 AF |
98 | # Formats 64: |
99 | @sh5 ....... ..... ..... ... ..... ....... &shift shamt=%sh5 %rs1 %rd | |
4ba79c47 | 100 | |
6bf4bbed FP |
101 | # Formats 128: |
102 | @sh6 ...... ...... ..... ... ..... ....... &shift shamt=%sh6 %rs1 %rd | |
103 | ||
4ba79c47 | 104 | # *** Privileged Instructions *** |
895c412c AF |
105 | ecall 000000000000 00000 000 00000 1110011 |
106 | ebreak 000000000001 00000 000 00000 1110011 | |
107 | uret 0000000 00010 00000 000 00000 1110011 | |
108 | sret 0001000 00010 00000 000 00000 1110011 | |
895c412c AF |
109 | mret 0011000 00010 00000 000 00000 1110011 |
110 | wfi 0001000 00101 00000 000 00000 1110011 | |
895c412c AF |
111 | sfence_vma 0001001 ..... ..... 000 00000 1110011 @sfence_vma |
112 | sfence_vm 0001000 00100 ..... 000 00000 1110011 @sfence_vm | |
4ba79c47 | 113 | |
2a53cff4 BK |
114 | # *** RV32I Base Instruction Set *** |
115 | lui .................... ..... 0110111 @u | |
116 | auipc .................... ..... 0010111 @u | |
3cca75a6 BK |
117 | jal .................... ..... 1101111 @j |
118 | jalr ............ ..... 000 ..... 1100111 @i | |
119 | beq ....... ..... ..... 000 ..... 1100011 @b | |
120 | bne ....... ..... ..... 001 ..... 1100011 @b | |
121 | blt ....... ..... ..... 100 ..... 1100011 @b | |
122 | bge ....... ..... ..... 101 ..... 1100011 @b | |
123 | bltu ....... ..... ..... 110 ..... 1100011 @b | |
124 | bgeu ....... ..... ..... 111 ..... 1100011 @b | |
c1000d4e BK |
125 | lb ............ ..... 000 ..... 0000011 @i |
126 | lh ............ ..... 001 ..... 0000011 @i | |
127 | lw ............ ..... 010 ..... 0000011 @i | |
128 | lbu ............ ..... 100 ..... 0000011 @i | |
129 | lhu ............ ..... 101 ..... 0000011 @i | |
130 | sb ....... ..... ..... 000 ..... 0100011 @s | |
131 | sh ....... ..... ..... 001 ..... 0100011 @s | |
132 | sw ....... ..... ..... 010 ..... 0100011 @s | |
b73a987b BK |
133 | addi ............ ..... 000 ..... 0010011 @i |
134 | slti ............ ..... 010 ..... 0010011 @i | |
135 | sltiu ............ ..... 011 ..... 0010011 @i | |
136 | xori ............ ..... 100 ..... 0010011 @i | |
137 | ori ............ ..... 110 ..... 0010011 @i | |
138 | andi ............ ..... 111 ..... 0010011 @i | |
00718208 KC |
139 | slli 00000. ...... ..... 001 ..... 0010011 @sh |
140 | srli 00000. ...... ..... 101 ..... 0010011 @sh | |
141 | srai 01000. ...... ..... 101 ..... 0010011 @sh | |
b73a987b BK |
142 | add 0000000 ..... ..... 000 ..... 0110011 @r |
143 | sub 0100000 ..... ..... 000 ..... 0110011 @r | |
144 | sll 0000000 ..... ..... 001 ..... 0110011 @r | |
145 | slt 0000000 ..... ..... 010 ..... 0110011 @r | |
146 | sltu 0000000 ..... ..... 011 ..... 0110011 @r | |
147 | xor 0000000 ..... ..... 100 ..... 0110011 @r | |
148 | srl 0000000 ..... ..... 101 ..... 0110011 @r | |
149 | sra 0100000 ..... ..... 101 ..... 0110011 @r | |
150 | or 0000000 ..... ..... 110 ..... 0110011 @r | |
151 | and 0000000 ..... ..... 111 ..... 0110011 @r | |
0c865e85 BK |
152 | fence ---- pred:4 succ:4 ----- 000 ----- 0001111 |
153 | fence_i ---- ---- ---- ----- 001 ----- 0001111 | |
771fbe15 BK |
154 | csrrw ............ ..... 001 ..... 1110011 @csr |
155 | csrrs ............ ..... 010 ..... 1110011 @csr | |
156 | csrrc ............ ..... 011 ..... 1110011 @csr | |
157 | csrrwi ............ ..... 101 ..... 1110011 @csr | |
158 | csrrsi ............ ..... 110 ..... 1110011 @csr | |
159 | csrrci ............ ..... 111 ..... 1110011 @csr | |
d2e2c1e4 | 160 | |
daf866b6 AF |
161 | # *** RV64I Base Instruction Set (in addition to RV32I) *** |
162 | lwu ............ ..... 110 ..... 0000011 @i | |
163 | ld ............ ..... 011 ..... 0000011 @i | |
164 | sd ....... ..... ..... 011 ..... 0100011 @s | |
165 | addiw ............ ..... 000 ..... 0011011 @i | |
166 | slliw 0000000 ..... ..... 001 ..... 0011011 @sh5 | |
167 | srliw 0000000 ..... ..... 101 ..... 0011011 @sh5 | |
168 | sraiw 0100000 ..... ..... 101 ..... 0011011 @sh5 | |
169 | addw 0000000 ..... ..... 000 ..... 0111011 @r | |
170 | subw 0100000 ..... ..... 000 ..... 0111011 @r | |
171 | sllw 0000000 ..... ..... 001 ..... 0111011 @r | |
172 | srlw 0000000 ..... ..... 101 ..... 0111011 @r | |
173 | sraw 0100000 ..... ..... 101 ..... 0111011 @r | |
174 | ||
a2f827ff FP |
175 | # *** RV128I Base Instruction Set (in addition to RV64I) *** |
176 | ldu ............ ..... 111 ..... 0000011 @i | |
177 | lq ............ ..... 010 ..... 0001111 @i | |
178 | sq ............ ..... 100 ..... 0100011 @s | |
7fd40f86 | 179 | addid ............ ..... 000 ..... 1011011 @i |
6bf4bbed FP |
180 | sllid 000000 ...... ..... 001 ..... 1011011 @sh6 |
181 | srlid 000000 ...... ..... 101 ..... 1011011 @sh6 | |
182 | sraid 010000 ...... ..... 101 ..... 1011011 @sh6 | |
7fd40f86 FP |
183 | addd 0000000 ..... ..... 000 ..... 1111011 @r |
184 | subd 0100000 ..... ..... 000 ..... 1111011 @r | |
6bf4bbed FP |
185 | slld 0000000 ..... ..... 001 ..... 1111011 @r |
186 | srld 0000000 ..... ..... 101 ..... 1111011 @r | |
187 | srad 0100000 ..... ..... 101 ..... 1111011 @r | |
a2f827ff | 188 | |
d2e2c1e4 BK |
189 | # *** RV32M Standard Extension *** |
190 | mul 0000001 ..... ..... 000 ..... 0110011 @r | |
191 | mulh 0000001 ..... ..... 001 ..... 0110011 @r | |
192 | mulhsu 0000001 ..... ..... 010 ..... 0110011 @r | |
193 | mulhu 0000001 ..... ..... 011 ..... 0110011 @r | |
194 | div 0000001 ..... ..... 100 ..... 0110011 @r | |
195 | divu 0000001 ..... ..... 101 ..... 0110011 @r | |
196 | rem 0000001 ..... ..... 110 ..... 0110011 @r | |
197 | remu 0000001 ..... ..... 111 ..... 0110011 @r | |
3b77c289 | 198 | |
daf866b6 AF |
199 | # *** RV64M Standard Extension (in addition to RV32M) *** |
200 | mulw 0000001 ..... ..... 000 ..... 0111011 @r | |
201 | divw 0000001 ..... ..... 100 ..... 0111011 @r | |
202 | divuw 0000001 ..... ..... 101 ..... 0111011 @r | |
203 | remw 0000001 ..... ..... 110 ..... 0111011 @r | |
204 | remuw 0000001 ..... ..... 111 ..... 0111011 @r | |
205 | ||
b3a5d1fb FP |
206 | # *** RV128M Standard Extension (in addition to RV64M) *** |
207 | muld 0000001 ..... ..... 000 ..... 1111011 @r | |
208 | divd 0000001 ..... ..... 100 ..... 1111011 @r | |
209 | divud 0000001 ..... ..... 101 ..... 1111011 @r | |
210 | remd 0000001 ..... ..... 110 ..... 1111011 @r | |
211 | remud 0000001 ..... ..... 111 ..... 1111011 @r | |
212 | ||
3b77c289 BK |
213 | # *** RV32A Standard Extension *** |
214 | lr_w 00010 . . 00000 ..... 010 ..... 0101111 @atom_ld | |
215 | sc_w 00011 . . ..... ..... 010 ..... 0101111 @atom_st | |
216 | amoswap_w 00001 . . ..... ..... 010 ..... 0101111 @atom_st | |
217 | amoadd_w 00000 . . ..... ..... 010 ..... 0101111 @atom_st | |
218 | amoxor_w 00100 . . ..... ..... 010 ..... 0101111 @atom_st | |
219 | amoand_w 01100 . . ..... ..... 010 ..... 0101111 @atom_st | |
220 | amoor_w 01000 . . ..... ..... 010 ..... 0101111 @atom_st | |
221 | amomin_w 10000 . . ..... ..... 010 ..... 0101111 @atom_st | |
222 | amomax_w 10100 . . ..... ..... 010 ..... 0101111 @atom_st | |
223 | amominu_w 11000 . . ..... ..... 010 ..... 0101111 @atom_st | |
224 | amomaxu_w 11100 . . ..... ..... 010 ..... 0101111 @atom_st | |
6f0e74ff | 225 | |
daf866b6 AF |
226 | # *** RV64A Standard Extension (in addition to RV32A) *** |
227 | lr_d 00010 . . 00000 ..... 011 ..... 0101111 @atom_ld | |
228 | sc_d 00011 . . ..... ..... 011 ..... 0101111 @atom_st | |
229 | amoswap_d 00001 . . ..... ..... 011 ..... 0101111 @atom_st | |
230 | amoadd_d 00000 . . ..... ..... 011 ..... 0101111 @atom_st | |
231 | amoxor_d 00100 . . ..... ..... 011 ..... 0101111 @atom_st | |
232 | amoand_d 01100 . . ..... ..... 011 ..... 0101111 @atom_st | |
233 | amoor_d 01000 . . ..... ..... 011 ..... 0101111 @atom_st | |
234 | amomin_d 10000 . . ..... ..... 011 ..... 0101111 @atom_st | |
235 | amomax_d 10100 . . ..... ..... 011 ..... 0101111 @atom_st | |
236 | amominu_d 11000 . . ..... ..... 011 ..... 0101111 @atom_st | |
237 | amomaxu_d 11100 . . ..... ..... 011 ..... 0101111 @atom_st | |
238 | ||
6f0e74ff BK |
239 | # *** RV32F Standard Extension *** |
240 | flw ............ ..... 010 ..... 0000111 @i | |
241 | fsw ....... ..... ..... 010 ..... 0100111 @s | |
242 | fmadd_s ..... 00 ..... ..... ... ..... 1000011 @r4_rm | |
243 | fmsub_s ..... 00 ..... ..... ... ..... 1000111 @r4_rm | |
244 | fnmsub_s ..... 00 ..... ..... ... ..... 1001011 @r4_rm | |
245 | fnmadd_s ..... 00 ..... ..... ... ..... 1001111 @r4_rm | |
246 | fadd_s 0000000 ..... ..... ... ..... 1010011 @r_rm | |
247 | fsub_s 0000100 ..... ..... ... ..... 1010011 @r_rm | |
248 | fmul_s 0001000 ..... ..... ... ..... 1010011 @r_rm | |
249 | fdiv_s 0001100 ..... ..... ... ..... 1010011 @r_rm | |
250 | fsqrt_s 0101100 00000 ..... ... ..... 1010011 @r2_rm | |
251 | fsgnj_s 0010000 ..... ..... 000 ..... 1010011 @r | |
252 | fsgnjn_s 0010000 ..... ..... 001 ..... 1010011 @r | |
253 | fsgnjx_s 0010000 ..... ..... 010 ..... 1010011 @r | |
254 | fmin_s 0010100 ..... ..... 000 ..... 1010011 @r | |
255 | fmax_s 0010100 ..... ..... 001 ..... 1010011 @r | |
256 | fcvt_w_s 1100000 00000 ..... ... ..... 1010011 @r2_rm | |
257 | fcvt_wu_s 1100000 00001 ..... ... ..... 1010011 @r2_rm | |
258 | fmv_x_w 1110000 00000 ..... 000 ..... 1010011 @r2 | |
259 | feq_s 1010000 ..... ..... 010 ..... 1010011 @r | |
260 | flt_s 1010000 ..... ..... 001 ..... 1010011 @r | |
261 | fle_s 1010000 ..... ..... 000 ..... 1010011 @r | |
262 | fclass_s 1110000 00000 ..... 001 ..... 1010011 @r2 | |
263 | fcvt_s_w 1101000 00000 ..... ... ..... 1010011 @r2_rm | |
264 | fcvt_s_wu 1101000 00001 ..... ... ..... 1010011 @r2_rm | |
265 | fmv_w_x 1111000 00000 ..... 000 ..... 1010011 @r2 | |
97f8b493 | 266 | |
daf866b6 AF |
267 | # *** RV64F Standard Extension (in addition to RV32F) *** |
268 | fcvt_l_s 1100000 00010 ..... ... ..... 1010011 @r2_rm | |
269 | fcvt_lu_s 1100000 00011 ..... ... ..... 1010011 @r2_rm | |
270 | fcvt_s_l 1101000 00010 ..... ... ..... 1010011 @r2_rm | |
271 | fcvt_s_lu 1101000 00011 ..... ... ..... 1010011 @r2_rm | |
272 | ||
97f8b493 BK |
273 | # *** RV32D Standard Extension *** |
274 | fld ............ ..... 011 ..... 0000111 @i | |
275 | fsd ....... ..... ..... 011 ..... 0100111 @s | |
276 | fmadd_d ..... 01 ..... ..... ... ..... 1000011 @r4_rm | |
277 | fmsub_d ..... 01 ..... ..... ... ..... 1000111 @r4_rm | |
278 | fnmsub_d ..... 01 ..... ..... ... ..... 1001011 @r4_rm | |
279 | fnmadd_d ..... 01 ..... ..... ... ..... 1001111 @r4_rm | |
280 | fadd_d 0000001 ..... ..... ... ..... 1010011 @r_rm | |
281 | fsub_d 0000101 ..... ..... ... ..... 1010011 @r_rm | |
282 | fmul_d 0001001 ..... ..... ... ..... 1010011 @r_rm | |
283 | fdiv_d 0001101 ..... ..... ... ..... 1010011 @r_rm | |
284 | fsqrt_d 0101101 00000 ..... ... ..... 1010011 @r2_rm | |
285 | fsgnj_d 0010001 ..... ..... 000 ..... 1010011 @r | |
286 | fsgnjn_d 0010001 ..... ..... 001 ..... 1010011 @r | |
287 | fsgnjx_d 0010001 ..... ..... 010 ..... 1010011 @r | |
288 | fmin_d 0010101 ..... ..... 000 ..... 1010011 @r | |
289 | fmax_d 0010101 ..... ..... 001 ..... 1010011 @r | |
290 | fcvt_s_d 0100000 00001 ..... ... ..... 1010011 @r2_rm | |
291 | fcvt_d_s 0100001 00000 ..... ... ..... 1010011 @r2_rm | |
292 | feq_d 1010001 ..... ..... 010 ..... 1010011 @r | |
293 | flt_d 1010001 ..... ..... 001 ..... 1010011 @r | |
294 | fle_d 1010001 ..... ..... 000 ..... 1010011 @r | |
295 | fclass_d 1110001 00000 ..... 001 ..... 1010011 @r2 | |
296 | fcvt_w_d 1100001 00000 ..... ... ..... 1010011 @r2_rm | |
297 | fcvt_wu_d 1100001 00001 ..... ... ..... 1010011 @r2_rm | |
298 | fcvt_d_w 1101001 00000 ..... ... ..... 1010011 @r2_rm | |
299 | fcvt_d_wu 1101001 00001 ..... ... ..... 1010011 @r2_rm | |
b8429ded | 300 | |
daf866b6 AF |
301 | # *** RV64D Standard Extension (in addition to RV32D) *** |
302 | fcvt_l_d 1100001 00010 ..... ... ..... 1010011 @r2_rm | |
303 | fcvt_lu_d 1100001 00011 ..... ... ..... 1010011 @r2_rm | |
304 | fmv_x_d 1110001 00000 ..... 000 ..... 1010011 @r2 | |
305 | fcvt_d_l 1101001 00010 ..... ... ..... 1010011 @r2_rm | |
306 | fcvt_d_lu 1101001 00011 ..... ... ..... 1010011 @r2_rm | |
307 | fmv_d_x 1111001 00000 ..... 000 ..... 1010011 @r2 | |
308 | ||
b8429ded | 309 | # *** RV32H Base Instruction Set *** |
8c5362ac AF |
310 | hlv_b 0110000 00000 ..... 100 ..... 1110011 @r2 |
311 | hlv_bu 0110000 00001 ..... 100 ..... 1110011 @r2 | |
312 | hlv_h 0110010 00000 ..... 100 ..... 1110011 @r2 | |
313 | hlv_hu 0110010 00001 ..... 100 ..... 1110011 @r2 | |
314 | hlvx_hu 0110010 00011 ..... 100 ..... 1110011 @r2 | |
315 | hlv_w 0110100 00000 ..... 100 ..... 1110011 @r2 | |
316 | hlvx_wu 0110100 00011 ..... 100 ..... 1110011 @r2 | |
317 | hsv_b 0110001 ..... ..... 100 00000 1110011 @r2_s | |
318 | hsv_h 0110011 ..... ..... 100 00000 1110011 @r2_s | |
319 | hsv_w 0110101 ..... ..... 100 00000 1110011 @r2_s | |
b8429ded AF |
320 | hfence_gvma 0110001 ..... ..... 000 00000 1110011 @hfence_gvma |
321 | hfence_vvma 0010001 ..... ..... 000 00000 1110011 @hfence_vvma | |
2b7168fc | 322 | |
c30a0757 | 323 | # *** RV64H Base Instruction Set *** |
daf866b6 AF |
324 | hlv_wu 0110100 00001 ..... 100 ..... 1110011 @r2 |
325 | hlv_d 0110110 00000 ..... 100 ..... 1110011 @r2 | |
326 | hsv_d 0110111 ..... ..... 100 00000 1110011 @r2_s | |
751538d5 LZ |
327 | |
328 | # *** Vector loads and stores are encoded within LOADFP/STORE-FP *** | |
79556fb6 FC |
329 | # Vector unit-stride load/store insns. |
330 | vle8_v ... 000 . 00000 ..... 000 ..... 0000111 @r2_nfvm | |
331 | vle16_v ... 000 . 00000 ..... 101 ..... 0000111 @r2_nfvm | |
332 | vle32_v ... 000 . 00000 ..... 110 ..... 0000111 @r2_nfvm | |
333 | vle64_v ... 000 . 00000 ..... 111 ..... 0000111 @r2_nfvm | |
334 | vse8_v ... 000 . 00000 ..... 000 ..... 0100111 @r2_nfvm | |
335 | vse16_v ... 000 . 00000 ..... 101 ..... 0100111 @r2_nfvm | |
336 | vse32_v ... 000 . 00000 ..... 110 ..... 0100111 @r2_nfvm | |
337 | vse64_v ... 000 . 00000 ..... 111 ..... 0100111 @r2_nfvm | |
338 | ||
26086aea FC |
339 | # Vector unit-stride mask load/store insns. |
340 | vlm_v 000 000 1 01011 ..... 000 ..... 0000111 @r2 | |
341 | vsm_v 000 000 1 01011 ..... 000 ..... 0100111 @r2 | |
342 | ||
79556fb6 FC |
343 | # Vector strided insns. |
344 | vlse8_v ... 010 . ..... ..... 000 ..... 0000111 @r_nfvm | |
345 | vlse16_v ... 010 . ..... ..... 101 ..... 0000111 @r_nfvm | |
346 | vlse32_v ... 010 . ..... ..... 110 ..... 0000111 @r_nfvm | |
347 | vlse64_v ... 010 . ..... ..... 111 ..... 0000111 @r_nfvm | |
348 | vsse8_v ... 010 . ..... ..... 000 ..... 0100111 @r_nfvm | |
349 | vsse16_v ... 010 . ..... ..... 101 ..... 0100111 @r_nfvm | |
350 | vsse32_v ... 010 . ..... ..... 110 ..... 0100111 @r_nfvm | |
351 | vsse64_v ... 010 . ..... ..... 111 ..... 0100111 @r_nfvm | |
352 | ||
08b9d0ed FC |
353 | # Vector ordered-indexed and unordered-indexed load insns. |
354 | vlxei8_v ... 0-1 . ..... ..... 000 ..... 0000111 @r_nfvm | |
355 | vlxei16_v ... 0-1 . ..... ..... 101 ..... 0000111 @r_nfvm | |
356 | vlxei32_v ... 0-1 . ..... ..... 110 ..... 0000111 @r_nfvm | |
357 | vlxei64_v ... 0-1 . ..... ..... 111 ..... 0000111 @r_nfvm | |
358 | ||
f732560e | 359 | # Vector ordered-indexed and unordered-indexed store insns. |
08b9d0ed FC |
360 | vsxei8_v ... 0-1 . ..... ..... 000 ..... 0100111 @r_nfvm |
361 | vsxei16_v ... 0-1 . ..... ..... 101 ..... 0100111 @r_nfvm | |
362 | vsxei32_v ... 0-1 . ..... ..... 110 ..... 0100111 @r_nfvm | |
363 | vsxei64_v ... 0-1 . ..... ..... 111 ..... 0100111 @r_nfvm | |
f732560e | 364 | |
d3e5e2ff FC |
365 | # Vector unit-stride fault-only-first load insns. |
366 | vle8ff_v ... 000 . 10000 ..... 000 ..... 0000111 @r2_nfvm | |
367 | vle16ff_v ... 000 . 10000 ..... 101 ..... 0000111 @r2_nfvm | |
368 | vle32ff_v ... 000 . 10000 ..... 110 ..... 0000111 @r2_nfvm | |
369 | vle64ff_v ... 000 . 10000 ..... 111 ..... 0000111 @r2_nfvm | |
370 | ||
30206bd8 FC |
371 | # Vector whole register insns |
372 | vl1re8_v 000 000 1 01000 ..... 000 ..... 0000111 @r2 | |
373 | vl1re16_v 000 000 1 01000 ..... 101 ..... 0000111 @r2 | |
374 | vl1re32_v 000 000 1 01000 ..... 110 ..... 0000111 @r2 | |
375 | vl1re64_v 000 000 1 01000 ..... 111 ..... 0000111 @r2 | |
376 | vl2re8_v 001 000 1 01000 ..... 000 ..... 0000111 @r2 | |
377 | vl2re16_v 001 000 1 01000 ..... 101 ..... 0000111 @r2 | |
378 | vl2re32_v 001 000 1 01000 ..... 110 ..... 0000111 @r2 | |
379 | vl2re64_v 001 000 1 01000 ..... 111 ..... 0000111 @r2 | |
380 | vl4re8_v 011 000 1 01000 ..... 000 ..... 0000111 @r2 | |
381 | vl4re16_v 011 000 1 01000 ..... 101 ..... 0000111 @r2 | |
382 | vl4re32_v 011 000 1 01000 ..... 110 ..... 0000111 @r2 | |
383 | vl4re64_v 011 000 1 01000 ..... 111 ..... 0000111 @r2 | |
384 | vl8re8_v 111 000 1 01000 ..... 000 ..... 0000111 @r2 | |
385 | vl8re16_v 111 000 1 01000 ..... 101 ..... 0000111 @r2 | |
386 | vl8re32_v 111 000 1 01000 ..... 110 ..... 0000111 @r2 | |
387 | vl8re64_v 111 000 1 01000 ..... 111 ..... 0000111 @r2 | |
388 | vs1r_v 000 000 1 01000 ..... 000 ..... 0100111 @r2 | |
389 | vs2r_v 001 000 1 01000 ..... 000 ..... 0100111 @r2 | |
390 | vs4r_v 011 000 1 01000 ..... 000 ..... 0100111 @r2 | |
391 | vs8r_v 111 000 1 01000 ..... 000 ..... 0100111 @r2 | |
392 | ||
751538d5 | 393 | # *** new major opcode OP-V *** |
43740e3a LZ |
394 | vadd_vv 000000 . ..... ..... 000 ..... 1010111 @r_vm |
395 | vadd_vx 000000 . ..... ..... 100 ..... 1010111 @r_vm | |
396 | vadd_vi 000000 . ..... ..... 011 ..... 1010111 @r_vm | |
397 | vsub_vv 000010 . ..... ..... 000 ..... 1010111 @r_vm | |
398 | vsub_vx 000010 . ..... ..... 100 ..... 1010111 @r_vm | |
399 | vrsub_vx 000011 . ..... ..... 100 ..... 1010111 @r_vm | |
400 | vrsub_vi 000011 . ..... ..... 011 ..... 1010111 @r_vm | |
8fcdf776 LZ |
401 | vwaddu_vv 110000 . ..... ..... 010 ..... 1010111 @r_vm |
402 | vwaddu_vx 110000 . ..... ..... 110 ..... 1010111 @r_vm | |
403 | vwadd_vv 110001 . ..... ..... 010 ..... 1010111 @r_vm | |
404 | vwadd_vx 110001 . ..... ..... 110 ..... 1010111 @r_vm | |
405 | vwsubu_vv 110010 . ..... ..... 010 ..... 1010111 @r_vm | |
406 | vwsubu_vx 110010 . ..... ..... 110 ..... 1010111 @r_vm | |
407 | vwsub_vv 110011 . ..... ..... 010 ..... 1010111 @r_vm | |
408 | vwsub_vx 110011 . ..... ..... 110 ..... 1010111 @r_vm | |
409 | vwaddu_wv 110100 . ..... ..... 010 ..... 1010111 @r_vm | |
410 | vwaddu_wx 110100 . ..... ..... 110 ..... 1010111 @r_vm | |
411 | vwadd_wv 110101 . ..... ..... 010 ..... 1010111 @r_vm | |
412 | vwadd_wx 110101 . ..... ..... 110 ..... 1010111 @r_vm | |
413 | vwsubu_wv 110110 . ..... ..... 010 ..... 1010111 @r_vm | |
414 | vwsubu_wx 110110 . ..... ..... 110 ..... 1010111 @r_vm | |
415 | vwsub_wv 110111 . ..... ..... 010 ..... 1010111 @r_vm | |
416 | vwsub_wx 110111 . ..... ..... 110 ..... 1010111 @r_vm | |
bb45485a FC |
417 | vadc_vvm 010000 0 ..... ..... 000 ..... 1010111 @r_vm_1 |
418 | vadc_vxm 010000 0 ..... ..... 100 ..... 1010111 @r_vm_1 | |
419 | vadc_vim 010000 0 ..... ..... 011 ..... 1010111 @r_vm_1 | |
420 | vmadc_vvm 010001 . ..... ..... 000 ..... 1010111 @r_vm | |
421 | vmadc_vxm 010001 . ..... ..... 100 ..... 1010111 @r_vm | |
422 | vmadc_vim 010001 . ..... ..... 011 ..... 1010111 @r_vm | |
423 | vsbc_vvm 010010 0 ..... ..... 000 ..... 1010111 @r_vm_1 | |
424 | vsbc_vxm 010010 0 ..... ..... 100 ..... 1010111 @r_vm_1 | |
425 | vmsbc_vvm 010011 . ..... ..... 000 ..... 1010111 @r_vm | |
426 | vmsbc_vxm 010011 . ..... ..... 100 ..... 1010111 @r_vm | |
d3842924 LZ |
427 | vand_vv 001001 . ..... ..... 000 ..... 1010111 @r_vm |
428 | vand_vx 001001 . ..... ..... 100 ..... 1010111 @r_vm | |
429 | vand_vi 001001 . ..... ..... 011 ..... 1010111 @r_vm | |
430 | vor_vv 001010 . ..... ..... 000 ..... 1010111 @r_vm | |
431 | vor_vx 001010 . ..... ..... 100 ..... 1010111 @r_vm | |
432 | vor_vi 001010 . ..... ..... 011 ..... 1010111 @r_vm | |
433 | vxor_vv 001011 . ..... ..... 000 ..... 1010111 @r_vm | |
434 | vxor_vx 001011 . ..... ..... 100 ..... 1010111 @r_vm | |
435 | vxor_vi 001011 . ..... ..... 011 ..... 1010111 @r_vm | |
3277d955 LZ |
436 | vsll_vv 100101 . ..... ..... 000 ..... 1010111 @r_vm |
437 | vsll_vx 100101 . ..... ..... 100 ..... 1010111 @r_vm | |
438 | vsll_vi 100101 . ..... ..... 011 ..... 1010111 @r_vm | |
439 | vsrl_vv 101000 . ..... ..... 000 ..... 1010111 @r_vm | |
440 | vsrl_vx 101000 . ..... ..... 100 ..... 1010111 @r_vm | |
441 | vsrl_vi 101000 . ..... ..... 011 ..... 1010111 @r_vm | |
442 | vsra_vv 101001 . ..... ..... 000 ..... 1010111 @r_vm | |
443 | vsra_vx 101001 . ..... ..... 100 ..... 1010111 @r_vm | |
444 | vsra_vi 101001 . ..... ..... 011 ..... 1010111 @r_vm | |
7daa5852 FC |
445 | vnsrl_wv 101100 . ..... ..... 000 ..... 1010111 @r_vm |
446 | vnsrl_wx 101100 . ..... ..... 100 ..... 1010111 @r_vm | |
447 | vnsrl_wi 101100 . ..... ..... 011 ..... 1010111 @r_vm | |
448 | vnsra_wv 101101 . ..... ..... 000 ..... 1010111 @r_vm | |
449 | vnsra_wx 101101 . ..... ..... 100 ..... 1010111 @r_vm | |
450 | vnsra_wi 101101 . ..... ..... 011 ..... 1010111 @r_vm | |
1366fc79 LZ |
451 | vmseq_vv 011000 . ..... ..... 000 ..... 1010111 @r_vm |
452 | vmseq_vx 011000 . ..... ..... 100 ..... 1010111 @r_vm | |
453 | vmseq_vi 011000 . ..... ..... 011 ..... 1010111 @r_vm | |
454 | vmsne_vv 011001 . ..... ..... 000 ..... 1010111 @r_vm | |
455 | vmsne_vx 011001 . ..... ..... 100 ..... 1010111 @r_vm | |
456 | vmsne_vi 011001 . ..... ..... 011 ..... 1010111 @r_vm | |
457 | vmsltu_vv 011010 . ..... ..... 000 ..... 1010111 @r_vm | |
458 | vmsltu_vx 011010 . ..... ..... 100 ..... 1010111 @r_vm | |
459 | vmslt_vv 011011 . ..... ..... 000 ..... 1010111 @r_vm | |
460 | vmslt_vx 011011 . ..... ..... 100 ..... 1010111 @r_vm | |
461 | vmsleu_vv 011100 . ..... ..... 000 ..... 1010111 @r_vm | |
462 | vmsleu_vx 011100 . ..... ..... 100 ..... 1010111 @r_vm | |
463 | vmsleu_vi 011100 . ..... ..... 011 ..... 1010111 @r_vm | |
464 | vmsle_vv 011101 . ..... ..... 000 ..... 1010111 @r_vm | |
465 | vmsle_vx 011101 . ..... ..... 100 ..... 1010111 @r_vm | |
466 | vmsle_vi 011101 . ..... ..... 011 ..... 1010111 @r_vm | |
467 | vmsgtu_vx 011110 . ..... ..... 100 ..... 1010111 @r_vm | |
468 | vmsgtu_vi 011110 . ..... ..... 011 ..... 1010111 @r_vm | |
469 | vmsgt_vx 011111 . ..... ..... 100 ..... 1010111 @r_vm | |
470 | vmsgt_vi 011111 . ..... ..... 011 ..... 1010111 @r_vm | |
558fa779 LZ |
471 | vminu_vv 000100 . ..... ..... 000 ..... 1010111 @r_vm |
472 | vminu_vx 000100 . ..... ..... 100 ..... 1010111 @r_vm | |
473 | vmin_vv 000101 . ..... ..... 000 ..... 1010111 @r_vm | |
474 | vmin_vx 000101 . ..... ..... 100 ..... 1010111 @r_vm | |
475 | vmaxu_vv 000110 . ..... ..... 000 ..... 1010111 @r_vm | |
476 | vmaxu_vx 000110 . ..... ..... 100 ..... 1010111 @r_vm | |
477 | vmax_vv 000111 . ..... ..... 000 ..... 1010111 @r_vm | |
478 | vmax_vx 000111 . ..... ..... 100 ..... 1010111 @r_vm | |
958b85f3 LZ |
479 | vmul_vv 100101 . ..... ..... 010 ..... 1010111 @r_vm |
480 | vmul_vx 100101 . ..... ..... 110 ..... 1010111 @r_vm | |
481 | vmulh_vv 100111 . ..... ..... 010 ..... 1010111 @r_vm | |
482 | vmulh_vx 100111 . ..... ..... 110 ..... 1010111 @r_vm | |
483 | vmulhu_vv 100100 . ..... ..... 010 ..... 1010111 @r_vm | |
484 | vmulhu_vx 100100 . ..... ..... 110 ..... 1010111 @r_vm | |
485 | vmulhsu_vv 100110 . ..... ..... 010 ..... 1010111 @r_vm | |
486 | vmulhsu_vx 100110 . ..... ..... 110 ..... 1010111 @r_vm | |
85e6658c LZ |
487 | vdivu_vv 100000 . ..... ..... 010 ..... 1010111 @r_vm |
488 | vdivu_vx 100000 . ..... ..... 110 ..... 1010111 @r_vm | |
489 | vdiv_vv 100001 . ..... ..... 010 ..... 1010111 @r_vm | |
490 | vdiv_vx 100001 . ..... ..... 110 ..... 1010111 @r_vm | |
491 | vremu_vv 100010 . ..... ..... 010 ..... 1010111 @r_vm | |
492 | vremu_vx 100010 . ..... ..... 110 ..... 1010111 @r_vm | |
493 | vrem_vv 100011 . ..... ..... 010 ..... 1010111 @r_vm | |
494 | vrem_vx 100011 . ..... ..... 110 ..... 1010111 @r_vm | |
97b1cba3 LZ |
495 | vwmulu_vv 111000 . ..... ..... 010 ..... 1010111 @r_vm |
496 | vwmulu_vx 111000 . ..... ..... 110 ..... 1010111 @r_vm | |
497 | vwmulsu_vv 111010 . ..... ..... 010 ..... 1010111 @r_vm | |
498 | vwmulsu_vx 111010 . ..... ..... 110 ..... 1010111 @r_vm | |
499 | vwmul_vv 111011 . ..... ..... 010 ..... 1010111 @r_vm | |
500 | vwmul_vx 111011 . ..... ..... 110 ..... 1010111 @r_vm | |
54df813a LZ |
501 | vmacc_vv 101101 . ..... ..... 010 ..... 1010111 @r_vm |
502 | vmacc_vx 101101 . ..... ..... 110 ..... 1010111 @r_vm | |
503 | vnmsac_vv 101111 . ..... ..... 010 ..... 1010111 @r_vm | |
504 | vnmsac_vx 101111 . ..... ..... 110 ..... 1010111 @r_vm | |
505 | vmadd_vv 101001 . ..... ..... 010 ..... 1010111 @r_vm | |
506 | vmadd_vx 101001 . ..... ..... 110 ..... 1010111 @r_vm | |
507 | vnmsub_vv 101011 . ..... ..... 010 ..... 1010111 @r_vm | |
508 | vnmsub_vx 101011 . ..... ..... 110 ..... 1010111 @r_vm | |
2b587b33 LZ |
509 | vwmaccu_vv 111100 . ..... ..... 010 ..... 1010111 @r_vm |
510 | vwmaccu_vx 111100 . ..... ..... 110 ..... 1010111 @r_vm | |
511 | vwmacc_vv 111101 . ..... ..... 010 ..... 1010111 @r_vm | |
512 | vwmacc_vx 111101 . ..... ..... 110 ..... 1010111 @r_vm | |
f51c3cf1 FC |
513 | vwmaccsu_vv 111111 . ..... ..... 010 ..... 1010111 @r_vm |
514 | vwmaccsu_vx 111111 . ..... ..... 110 ..... 1010111 @r_vm | |
515 | vwmaccus_vx 111110 . ..... ..... 110 ..... 1010111 @r_vm | |
f020a7a1 LZ |
516 | vmv_v_v 010111 1 00000 ..... 000 ..... 1010111 @r2 |
517 | vmv_v_x 010111 1 00000 ..... 100 ..... 1010111 @r2 | |
518 | vmv_v_i 010111 1 00000 ..... 011 ..... 1010111 @r2 | |
519 | vmerge_vvm 010111 0 ..... ..... 000 ..... 1010111 @r_vm_0 | |
520 | vmerge_vxm 010111 0 ..... ..... 100 ..... 1010111 @r_vm_0 | |
521 | vmerge_vim 010111 0 ..... ..... 011 ..... 1010111 @r_vm_0 | |
eb2650e3 LZ |
522 | vsaddu_vv 100000 . ..... ..... 000 ..... 1010111 @r_vm |
523 | vsaddu_vx 100000 . ..... ..... 100 ..... 1010111 @r_vm | |
524 | vsaddu_vi 100000 . ..... ..... 011 ..... 1010111 @r_vm | |
525 | vsadd_vv 100001 . ..... ..... 000 ..... 1010111 @r_vm | |
526 | vsadd_vx 100001 . ..... ..... 100 ..... 1010111 @r_vm | |
527 | vsadd_vi 100001 . ..... ..... 011 ..... 1010111 @r_vm | |
528 | vssubu_vv 100010 . ..... ..... 000 ..... 1010111 @r_vm | |
529 | vssubu_vx 100010 . ..... ..... 100 ..... 1010111 @r_vm | |
530 | vssub_vv 100011 . ..... ..... 000 ..... 1010111 @r_vm | |
531 | vssub_vx 100011 . ..... ..... 100 ..... 1010111 @r_vm | |
8b99a110 FC |
532 | vaadd_vv 001001 . ..... ..... 010 ..... 1010111 @r_vm |
533 | vaadd_vx 001001 . ..... ..... 110 ..... 1010111 @r_vm | |
534 | vaaddu_vv 001000 . ..... ..... 010 ..... 1010111 @r_vm | |
535 | vaaddu_vx 001000 . ..... ..... 110 ..... 1010111 @r_vm | |
536 | vasub_vv 001011 . ..... ..... 010 ..... 1010111 @r_vm | |
537 | vasub_vx 001011 . ..... ..... 110 ..... 1010111 @r_vm | |
538 | vasubu_vv 001010 . ..... ..... 010 ..... 1010111 @r_vm | |
539 | vasubu_vx 001010 . ..... ..... 110 ..... 1010111 @r_vm | |
9f0ff9e5 LZ |
540 | vsmul_vv 100111 . ..... ..... 000 ..... 1010111 @r_vm |
541 | vsmul_vx 100111 . ..... ..... 100 ..... 1010111 @r_vm | |
04a61406 LZ |
542 | vssrl_vv 101010 . ..... ..... 000 ..... 1010111 @r_vm |
543 | vssrl_vx 101010 . ..... ..... 100 ..... 1010111 @r_vm | |
544 | vssrl_vi 101010 . ..... ..... 011 ..... 1010111 @r_vm | |
545 | vssra_vv 101011 . ..... ..... 000 ..... 1010111 @r_vm | |
546 | vssra_vx 101011 . ..... ..... 100 ..... 1010111 @r_vm | |
547 | vssra_vi 101011 . ..... ..... 011 ..... 1010111 @r_vm | |
a70b3a73 FC |
548 | vnclipu_wv 101110 . ..... ..... 000 ..... 1010111 @r_vm |
549 | vnclipu_wx 101110 . ..... ..... 100 ..... 1010111 @r_vm | |
550 | vnclipu_wi 101110 . ..... ..... 011 ..... 1010111 @r_vm | |
551 | vnclip_wv 101111 . ..... ..... 000 ..... 1010111 @r_vm | |
552 | vnclip_wx 101111 . ..... ..... 100 ..... 1010111 @r_vm | |
553 | vnclip_wi 101111 . ..... ..... 011 ..... 1010111 @r_vm | |
ce2a0343 LZ |
554 | vfadd_vv 000000 . ..... ..... 001 ..... 1010111 @r_vm |
555 | vfadd_vf 000000 . ..... ..... 101 ..... 1010111 @r_vm | |
556 | vfsub_vv 000010 . ..... ..... 001 ..... 1010111 @r_vm | |
557 | vfsub_vf 000010 . ..... ..... 101 ..... 1010111 @r_vm | |
558 | vfrsub_vf 100111 . ..... ..... 101 ..... 1010111 @r_vm | |
eeffab2e LZ |
559 | vfwadd_vv 110000 . ..... ..... 001 ..... 1010111 @r_vm |
560 | vfwadd_vf 110000 . ..... ..... 101 ..... 1010111 @r_vm | |
561 | vfwadd_wv 110100 . ..... ..... 001 ..... 1010111 @r_vm | |
562 | vfwadd_wf 110100 . ..... ..... 101 ..... 1010111 @r_vm | |
563 | vfwsub_vv 110010 . ..... ..... 001 ..... 1010111 @r_vm | |
564 | vfwsub_vf 110010 . ..... ..... 101 ..... 1010111 @r_vm | |
565 | vfwsub_wv 110110 . ..... ..... 001 ..... 1010111 @r_vm | |
566 | vfwsub_wf 110110 . ..... ..... 101 ..... 1010111 @r_vm | |
0e0057cb LZ |
567 | vfmul_vv 100100 . ..... ..... 001 ..... 1010111 @r_vm |
568 | vfmul_vf 100100 . ..... ..... 101 ..... 1010111 @r_vm | |
569 | vfdiv_vv 100000 . ..... ..... 001 ..... 1010111 @r_vm | |
570 | vfdiv_vf 100000 . ..... ..... 101 ..... 1010111 @r_vm | |
571 | vfrdiv_vf 100001 . ..... ..... 101 ..... 1010111 @r_vm | |
f7c7b7cd LZ |
572 | vfwmul_vv 111000 . ..... ..... 001 ..... 1010111 @r_vm |
573 | vfwmul_vf 111000 . ..... ..... 101 ..... 1010111 @r_vm | |
4aa5a8fe LZ |
574 | vfmacc_vv 101100 . ..... ..... 001 ..... 1010111 @r_vm |
575 | vfnmacc_vv 101101 . ..... ..... 001 ..... 1010111 @r_vm | |
576 | vfnmacc_vf 101101 . ..... ..... 101 ..... 1010111 @r_vm | |
577 | vfmacc_vf 101100 . ..... ..... 101 ..... 1010111 @r_vm | |
578 | vfmsac_vv 101110 . ..... ..... 001 ..... 1010111 @r_vm | |
579 | vfmsac_vf 101110 . ..... ..... 101 ..... 1010111 @r_vm | |
580 | vfnmsac_vv 101111 . ..... ..... 001 ..... 1010111 @r_vm | |
581 | vfnmsac_vf 101111 . ..... ..... 101 ..... 1010111 @r_vm | |
582 | vfmadd_vv 101000 . ..... ..... 001 ..... 1010111 @r_vm | |
583 | vfmadd_vf 101000 . ..... ..... 101 ..... 1010111 @r_vm | |
584 | vfnmadd_vv 101001 . ..... ..... 001 ..... 1010111 @r_vm | |
585 | vfnmadd_vf 101001 . ..... ..... 101 ..... 1010111 @r_vm | |
586 | vfmsub_vv 101010 . ..... ..... 001 ..... 1010111 @r_vm | |
587 | vfmsub_vf 101010 . ..... ..... 101 ..... 1010111 @r_vm | |
588 | vfnmsub_vv 101011 . ..... ..... 001 ..... 1010111 @r_vm | |
589 | vfnmsub_vf 101011 . ..... ..... 101 ..... 1010111 @r_vm | |
0dd50959 LZ |
590 | vfwmacc_vv 111100 . ..... ..... 001 ..... 1010111 @r_vm |
591 | vfwmacc_vf 111100 . ..... ..... 101 ..... 1010111 @r_vm | |
592 | vfwnmacc_vv 111101 . ..... ..... 001 ..... 1010111 @r_vm | |
593 | vfwnmacc_vf 111101 . ..... ..... 101 ..... 1010111 @r_vm | |
594 | vfwmsac_vv 111110 . ..... ..... 001 ..... 1010111 @r_vm | |
595 | vfwmsac_vf 111110 . ..... ..... 101 ..... 1010111 @r_vm | |
596 | vfwnmsac_vv 111111 . ..... ..... 001 ..... 1010111 @r_vm | |
597 | vfwnmsac_vf 111111 . ..... ..... 101 ..... 1010111 @r_vm | |
20f2079a | 598 | vfsqrt_v 010011 . ..... 00000 001 ..... 1010111 @r2_vm |
e848a1e5 | 599 | vfrsqrt7_v 010011 . ..... 00100 001 ..... 1010111 @r2_vm |
55c35407 | 600 | vfrec7_v 010011 . ..... 00101 001 ..... 1010111 @r2_vm |
230b53dd LZ |
601 | vfmin_vv 000100 . ..... ..... 001 ..... 1010111 @r_vm |
602 | vfmin_vf 000100 . ..... ..... 101 ..... 1010111 @r_vm | |
603 | vfmax_vv 000110 . ..... ..... 001 ..... 1010111 @r_vm | |
604 | vfmax_vf 000110 . ..... ..... 101 ..... 1010111 @r_vm | |
1d426b81 LZ |
605 | vfsgnj_vv 001000 . ..... ..... 001 ..... 1010111 @r_vm |
606 | vfsgnj_vf 001000 . ..... ..... 101 ..... 1010111 @r_vm | |
607 | vfsgnjn_vv 001001 . ..... ..... 001 ..... 1010111 @r_vm | |
608 | vfsgnjn_vf 001001 . ..... ..... 101 ..... 1010111 @r_vm | |
609 | vfsgnjx_vv 001010 . ..... ..... 001 ..... 1010111 @r_vm | |
610 | vfsgnjx_vf 001010 . ..... ..... 101 ..... 1010111 @r_vm | |
8500d4ab FC |
611 | vfslide1up_vf 001110 . ..... ..... 101 ..... 1010111 @r_vm |
612 | vfslide1down_vf 001111 . ..... ..... 101 ..... 1010111 @r_vm | |
2a68e9e5 LZ |
613 | vmfeq_vv 011000 . ..... ..... 001 ..... 1010111 @r_vm |
614 | vmfeq_vf 011000 . ..... ..... 101 ..... 1010111 @r_vm | |
615 | vmfne_vv 011100 . ..... ..... 001 ..... 1010111 @r_vm | |
616 | vmfne_vf 011100 . ..... ..... 101 ..... 1010111 @r_vm | |
617 | vmflt_vv 011011 . ..... ..... 001 ..... 1010111 @r_vm | |
618 | vmflt_vf 011011 . ..... ..... 101 ..... 1010111 @r_vm | |
619 | vmfle_vv 011001 . ..... ..... 001 ..... 1010111 @r_vm | |
620 | vmfle_vf 011001 . ..... ..... 101 ..... 1010111 @r_vm | |
621 | vmfgt_vf 011101 . ..... ..... 101 ..... 1010111 @r_vm | |
622 | vmfge_vf 011111 . ..... ..... 101 ..... 1010111 @r_vm | |
0676d8e3 | 623 | vfclass_v 010011 . ..... 10000 001 ..... 1010111 @r2_vm |
64ab5846 LZ |
624 | vfmerge_vfm 010111 0 ..... ..... 101 ..... 1010111 @r_vm_0 |
625 | vfmv_v_f 010111 1 00000 ..... 101 ..... 1010111 @r2 | |
900da87a FC |
626 | |
627 | vfcvt_xu_f_v 010010 . ..... 00000 001 ..... 1010111 @r2_vm | |
628 | vfcvt_x_f_v 010010 . ..... 00001 001 ..... 1010111 @r2_vm | |
629 | vfcvt_f_xu_v 010010 . ..... 00010 001 ..... 1010111 @r2_vm | |
630 | vfcvt_f_x_v 010010 . ..... 00011 001 ..... 1010111 @r2_vm | |
631 | vfcvt_rtz_xu_f_v 010010 . ..... 00110 001 ..... 1010111 @r2_vm | |
632 | vfcvt_rtz_x_f_v 010010 . ..... 00111 001 ..... 1010111 @r2_vm | |
3ce4c09d FC |
633 | |
634 | vfwcvt_xu_f_v 010010 . ..... 01000 001 ..... 1010111 @r2_vm | |
635 | vfwcvt_x_f_v 010010 . ..... 01001 001 ..... 1010111 @r2_vm | |
636 | vfwcvt_f_xu_v 010010 . ..... 01010 001 ..... 1010111 @r2_vm | |
637 | vfwcvt_f_x_v 010010 . ..... 01011 001 ..... 1010111 @r2_vm | |
638 | vfwcvt_f_f_v 010010 . ..... 01100 001 ..... 1010111 @r2_vm | |
639 | vfwcvt_rtz_xu_f_v 010010 . ..... 01110 001 ..... 1010111 @r2_vm | |
640 | vfwcvt_rtz_x_f_v 010010 . ..... 01111 001 ..... 1010111 @r2_vm | |
ff679b58 FC |
641 | |
642 | vfncvt_xu_f_w 010010 . ..... 10000 001 ..... 1010111 @r2_vm | |
643 | vfncvt_x_f_w 010010 . ..... 10001 001 ..... 1010111 @r2_vm | |
644 | vfncvt_f_xu_w 010010 . ..... 10010 001 ..... 1010111 @r2_vm | |
645 | vfncvt_f_x_w 010010 . ..... 10011 001 ..... 1010111 @r2_vm | |
646 | vfncvt_f_f_w 010010 . ..... 10100 001 ..... 1010111 @r2_vm | |
647 | vfncvt_rod_f_f_w 010010 . ..... 10101 001 ..... 1010111 @r2_vm | |
648 | vfncvt_rtz_xu_f_w 010010 . ..... 10110 001 ..... 1010111 @r2_vm | |
649 | vfncvt_rtz_x_f_w 010010 . ..... 10111 001 ..... 1010111 @r2_vm | |
650 | ||
fe5c9ab1 LZ |
651 | vredsum_vs 000000 . ..... ..... 010 ..... 1010111 @r_vm |
652 | vredand_vs 000001 . ..... ..... 010 ..... 1010111 @r_vm | |
653 | vredor_vs 000010 . ..... ..... 010 ..... 1010111 @r_vm | |
654 | vredxor_vs 000011 . ..... ..... 010 ..... 1010111 @r_vm | |
655 | vredminu_vs 000100 . ..... ..... 010 ..... 1010111 @r_vm | |
656 | vredmin_vs 000101 . ..... ..... 010 ..... 1010111 @r_vm | |
657 | vredmaxu_vs 000110 . ..... ..... 010 ..... 1010111 @r_vm | |
658 | vredmax_vs 000111 . ..... ..... 010 ..... 1010111 @r_vm | |
bba71820 LZ |
659 | vwredsumu_vs 110000 . ..... ..... 000 ..... 1010111 @r_vm |
660 | vwredsum_vs 110001 . ..... ..... 000 ..... 1010111 @r_vm | |
523547f1 LZ |
661 | # Vector ordered and unordered reduction sum |
662 | vfredsum_vs 0000-1 . ..... ..... 001 ..... 1010111 @r_vm | |
663 | vfredmin_vs 000101 . ..... ..... 001 ..... 1010111 @r_vm | |
664 | vfredmax_vs 000111 . ..... ..... 001 ..... 1010111 @r_vm | |
696b0c26 LZ |
665 | # Vector widening ordered and unordered float reduction sum |
666 | vfwredsum_vs 1100-1 . ..... ..... 001 ..... 1010111 @r_vm | |
c21f34ae LZ |
667 | vmand_mm 011001 - ..... ..... 010 ..... 1010111 @r |
668 | vmnand_mm 011101 - ..... ..... 010 ..... 1010111 @r | |
9c0d2559 | 669 | vmandn_mm 011000 - ..... ..... 010 ..... 1010111 @r |
c21f34ae LZ |
670 | vmxor_mm 011011 - ..... ..... 010 ..... 1010111 @r |
671 | vmor_mm 011010 - ..... ..... 010 ..... 1010111 @r | |
672 | vmnor_mm 011110 - ..... ..... 010 ..... 1010111 @r | |
9c0d2559 | 673 | vmorn_mm 011100 - ..... ..... 010 ..... 1010111 @r |
c21f34ae | 674 | vmxnor_mm 011111 - ..... ..... 010 ..... 1010111 @r |
0014aa74 | 675 | vcpop_m 010000 . ..... 10000 010 ..... 1010111 @r2_vm |
d71a24fc | 676 | vfirst_m 010000 . ..... 10001 010 ..... 1010111 @r2_vm |
40c1495d FC |
677 | vmsbf_m 010100 . ..... 00001 010 ..... 1010111 @r2_vm |
678 | vmsif_m 010100 . ..... 00011 010 ..... 1010111 @r2_vm | |
679 | vmsof_m 010100 . ..... 00010 010 ..... 1010111 @r2_vm | |
ee17eaa1 | 680 | viota_m 010100 . ..... 10000 010 ..... 1010111 @r2_vm |
f4f47e04 | 681 | vid_v 010100 . 00000 10001 010 ..... 1010111 @r1_vm |
dedc53cb FC |
682 | vmv_x_s 010000 1 ..... 00000 010 ..... 1010111 @r2rd |
683 | vmv_s_x 010000 1 00000 ..... 110 ..... 1010111 @r2 | |
5c4eb8fb FC |
684 | vfmv_f_s 010000 1 ..... 00000 001 ..... 1010111 @r2rd |
685 | vfmv_s_f 010000 1 00000 ..... 101 ..... 1010111 @r2 | |
ec17e036 LZ |
686 | vslideup_vx 001110 . ..... ..... 100 ..... 1010111 @r_vm |
687 | vslideup_vi 001110 . ..... ..... 011 ..... 1010111 @r_vm | |
688 | vslide1up_vx 001110 . ..... ..... 110 ..... 1010111 @r_vm | |
689 | vslidedown_vx 001111 . ..... ..... 100 ..... 1010111 @r_vm | |
690 | vslidedown_vi 001111 . ..... ..... 011 ..... 1010111 @r_vm | |
691 | vslide1down_vx 001111 . ..... ..... 110 ..... 1010111 @r_vm | |
e4b83d5c | 692 | vrgather_vv 001100 . ..... ..... 000 ..... 1010111 @r_vm |
50bfb45b | 693 | vrgatherei16_vv 001110 . ..... ..... 000 ..... 1010111 @r_vm |
e4b83d5c LZ |
694 | vrgather_vx 001100 . ..... ..... 100 ..... 1010111 @r_vm |
695 | vrgather_vi 001100 . ..... ..... 011 ..... 1010111 @r_vm | |
31bf42a2 | 696 | vcompress_vm 010111 - ..... ..... 010 ..... 1010111 @r |
6b85975e FC |
697 | vmv1r_v 100111 1 ..... 00000 011 ..... 1010111 @r2rd |
698 | vmv2r_v 100111 1 ..... 00001 011 ..... 1010111 @r2rd | |
699 | vmv4r_v 100111 1 ..... 00011 011 ..... 1010111 @r2rd | |
700 | vmv8r_v 100111 1 ..... 00111 011 ..... 1010111 @r2rd | |
43740e3a | 701 | |
cd01340e FC |
702 | # Vector Integer Extension |
703 | vzext_vf2 010010 . ..... 00110 010 ..... 1010111 @r2_vm | |
704 | vzext_vf4 010010 . ..... 00100 010 ..... 1010111 @r2_vm | |
705 | vzext_vf8 010010 . ..... 00010 010 ..... 1010111 @r2_vm | |
706 | vsext_vf2 010010 . ..... 00111 010 ..... 1010111 @r2_vm | |
707 | vsext_vf4 010010 . ..... 00101 010 ..... 1010111 @r2_vm | |
708 | vsext_vf8 010010 . ..... 00011 010 ..... 1010111 @r2_vm | |
709 | ||
6b5c8eb3 | 710 | vsetvli 0 ........... ..... 111 ..... 1010111 @r2_zimm11 |
34a2c2d8 | 711 | vsetivli 11 .......... ..... 111 ..... 1010111 @r2_zimm10 |
2b7168fc | 712 | vsetvl 1000000 ..... ..... 111 ..... 1010111 @r |
daf866b6 | 713 | |
bb4dc158 PT |
714 | # *** RV32 Zba Standard Extension *** |
715 | sh1add 0010000 .......... 010 ..... 0110011 @r | |
716 | sh2add 0010000 .......... 100 ..... 0110011 @r | |
717 | sh3add 0010000 .......... 110 ..... 0110011 @r | |
718 | ||
719 | # *** RV64 Zba Standard Extension (in addition to RV32 Zba) *** | |
720 | add_uw 0000100 .......... 000 ..... 0111011 @r | |
721 | sh1add_uw 0010000 .......... 010 ..... 0111011 @r | |
722 | sh2add_uw 0010000 .......... 100 ..... 0111011 @r | |
723 | sh3add_uw 0010000 .......... 110 ..... 0111011 @r | |
724 | slli_uw 00001 ............ 001 ..... 0011011 @sh | |
725 | ||
d8e81e3c | 726 | # *** RV32 Zbb/Zbkb Standard Extension *** |
16c38f36 | 727 | andn 0100000 .......... 111 ..... 0110011 @r |
d8e81e3c WL |
728 | rol 0110000 .......... 001 ..... 0110011 @r |
729 | ror 0110000 .......... 101 ..... 0110011 @r | |
730 | rori 01100 ............ 101 ..... 0010011 @sh | |
731 | # The encoding for rev8 differs between RV32 and RV64. | |
732 | # rev8_32 denotes the RV32 variant. | |
733 | rev8_32 011010 011000 ..... 101 ..... 0010011 @r2 | |
734 | # The encoding for zext.h differs between RV32 and RV64. | |
735 | # zext_h_32 denotes the RV32 variant. | |
736 | { | |
737 | zext_h_32 0000100 00000 ..... 100 ..... 0110011 @r2 | |
738 | pack 0000100 ..... ..... 100 ..... 0110011 @r | |
739 | } | |
740 | xnor 0100000 .......... 100 ..... 0110011 @r | |
741 | # *** RV32 extra Zbb Standard Extension *** | |
43824018 | 742 | clz 011000 000000 ..... 001 ..... 0010011 @r2 |
1e16310c | 743 | cpop 011000 000010 ..... 001 ..... 0010011 @r2 |
16c38f36 PT |
744 | ctz 011000 000001 ..... 001 ..... 0010011 @r2 |
745 | max 0000101 .......... 110 ..... 0110011 @r | |
746 | maxu 0000101 .......... 111 ..... 0110011 @r | |
747 | min 0000101 .......... 100 ..... 0110011 @r | |
748 | minu 0000101 .......... 101 ..... 0110011 @r | |
d7a4fcb0 | 749 | orc_b 001010 000111 ..... 101 ..... 0010011 @r2 |
16c38f36 | 750 | orn 0100000 .......... 110 ..... 0110011 @r |
2a819738 KC |
751 | sext_b 011000 000100 ..... 001 ..... 0010011 @r2 |
752 | sext_h 011000 000101 ..... 001 ..... 0010011 @r2 | |
d8e81e3c WL |
753 | # *** RV32 extra Zbkb Standard Extension *** |
754 | brev8 0110100 00111 ..... 101 ..... 0010011 @r2 #grevi | |
755 | packh 0000100 .......... 111 ..... 0110011 @r | |
756 | unzip 0000100 01111 ..... 101 ..... 0010011 @r2 #unshfl | |
757 | zip 0000100 01111 ..... 001 ..... 0010011 @r2 #shfl | |
16c38f36 | 758 | |
d8e81e3c | 759 | # *** RV64 Zbb/Zbkb Standard Extension (in addition to RV32 Zbb/Zbkb) *** |
a1095bdc PT |
760 | # The encoding for rev8 differs between RV32 and RV64. |
761 | # When executing on RV64, the encoding used in RV32 is an illegal | |
762 | # instruction, so we use different handler functions to differentiate. | |
763 | rev8_64 011010 111000 ..... 101 ..... 0010011 @r2 | |
16c38f36 PT |
764 | rolw 0110000 .......... 001 ..... 0111011 @r |
765 | roriw 0110000 .......... 101 ..... 0011011 @sh5 | |
766 | rorw 0110000 .......... 101 ..... 0111011 @r | |
06dfa8a5 PT |
767 | # The encoding for zext.h differs between RV32 and RV64. |
768 | # When executing on RV64, the encoding used in RV32 is an illegal | |
769 | # instruction, so we use different handler functions to differentiate. | |
d8e81e3c WL |
770 | { |
771 | zext_h_64 0000100 00000 ..... 100 ..... 0111011 @r2 | |
772 | packw 0000100 ..... ..... 100 ..... 0111011 @r | |
773 | } | |
774 | # *** RV64 extra Zbb Standard Extension (in addition to RV32 Zbb) *** | |
775 | clzw 0110000 00000 ..... 001 ..... 0011011 @r2 | |
776 | ctzw 0110000 00001 ..... 001 ..... 0011011 @r2 | |
777 | cpopw 0110000 00010 ..... 001 ..... 0011011 @r2 | |
16c38f36 | 778 | |
5cc69ceb | 779 | # *** RV32 Zbc/Zbkc Standard Extension *** |
fd4b81a3 PT |
780 | clmul 0000101 .......... 001 ..... 0110011 @r |
781 | clmulh 0000101 .......... 011 ..... 0110011 @r | |
5cc69ceb | 782 | # *** RV32 extra Zbc Standard Extension *** |
fd4b81a3 PT |
783 | clmulr 0000101 .......... 010 ..... 0110011 @r |
784 | ||
04963896 WL |
785 | # *** RV32 Zbkx Standard Extension *** |
786 | xperm4 0010100 .......... 010 ..... 0110011 @r | |
787 | xperm8 0010100 .......... 100 ..... 0110011 @r | |
788 | ||
f36a4a89 PT |
789 | # *** RV32 Zbs Standard Extension *** |
790 | bclr 0100100 .......... 001 ..... 0110011 @r | |
791 | bclri 01001. ........... 001 ..... 0010011 @sh | |
792 | bext 0100100 .......... 101 ..... 0110011 @r | |
793 | bexti 01001. ........... 101 ..... 0010011 @sh | |
794 | binv 0110100 .......... 001 ..... 0110011 @r | |
795 | binvi 01101. ........... 001 ..... 0010011 @sh | |
796 | bset 0010100 .......... 001 ..... 0110011 @r | |
797 | bseti 00101. ........... 001 ..... 0010011 @sh | |
915f77b2 KC |
798 | |
799 | # *** RV32 Zfh Extension *** | |
800 | flh ............ ..... 001 ..... 0000111 @i | |
801 | fsh ....... ..... ..... 001 ..... 0100111 @s | |
00c1899f KC |
802 | fmadd_h ..... 10 ..... ..... ... ..... 1000011 @r4_rm |
803 | fmsub_h ..... 10 ..... ..... ... ..... 1000111 @r4_rm | |
804 | fnmsub_h ..... 10 ..... ..... ... ..... 1001011 @r4_rm | |
805 | fnmadd_h ..... 10 ..... ..... ... ..... 1001111 @r4_rm | |
806 | fadd_h 0000010 ..... ..... ... ..... 1010011 @r_rm | |
807 | fsub_h 0000110 ..... ..... ... ..... 1010011 @r_rm | |
808 | fmul_h 0001010 ..... ..... ... ..... 1010011 @r_rm | |
809 | fdiv_h 0001110 ..... ..... ... ..... 1010011 @r_rm | |
810 | fsqrt_h 0101110 00000 ..... ... ..... 1010011 @r2_rm | |
7b03c8e5 KC |
811 | fsgnj_h 0010010 ..... ..... 000 ..... 1010011 @r |
812 | fsgnjn_h 0010010 ..... ..... 001 ..... 1010011 @r | |
813 | fsgnjx_h 0010010 ..... ..... 010 ..... 1010011 @r | |
00c1899f KC |
814 | fmin_h 0010110 ..... ..... 000 ..... 1010011 @r |
815 | fmax_h 0010110 ..... ..... 001 ..... 1010011 @r | |
7b03c8e5 KC |
816 | fcvt_h_s 0100010 00000 ..... ... ..... 1010011 @r2_rm |
817 | fcvt_s_h 0100000 00010 ..... ... ..... 1010011 @r2_rm | |
818 | fcvt_h_d 0100010 00001 ..... ... ..... 1010011 @r2_rm | |
819 | fcvt_d_h 0100001 00010 ..... ... ..... 1010011 @r2_rm | |
820 | fcvt_w_h 1100010 00000 ..... ... ..... 1010011 @r2_rm | |
821 | fcvt_wu_h 1100010 00001 ..... ... ..... 1010011 @r2_rm | |
822 | fmv_x_h 1110010 00000 ..... 000 ..... 1010011 @r2 | |
11f9c450 KC |
823 | feq_h 1010010 ..... ..... 010 ..... 1010011 @r |
824 | flt_h 1010010 ..... ..... 001 ..... 1010011 @r | |
825 | fle_h 1010010 ..... ..... 000 ..... 1010011 @r | |
6bc6fc96 | 826 | fclass_h 1110010 00000 ..... 001 ..... 1010011 @r2 |
7b03c8e5 KC |
827 | fcvt_h_w 1101010 00000 ..... ... ..... 1010011 @r2_rm |
828 | fcvt_h_wu 1101010 00001 ..... ... ..... 1010011 @r2_rm | |
829 | fmv_h_x 1111010 00000 ..... 000 ..... 1010011 @r2 | |
830 | ||
831 | # *** RV64 Zfh Extension (in addition to RV32 Zfh) *** | |
832 | fcvt_l_h 1100010 00010 ..... ... ..... 1010011 @r2_rm | |
833 | fcvt_lu_h 1100010 00011 ..... ... ..... 1010011 @r2_rm | |
834 | fcvt_h_l 1101010 00010 ..... ... ..... 1010011 @r2_rm | |
835 | fcvt_h_lu 1101010 00011 ..... ... ..... 1010011 @r2_rm | |
c5d77ddd WL |
836 | |
837 | # *** Svinval Standard Extension *** | |
838 | sinval_vma 0001011 ..... ..... 000 00000 1110011 @sfence_vma | |
839 | sfence_w_inval 0001100 00000 00000 000 00000 1110011 | |
840 | sfence_inval_ir 0001100 00001 00000 000 00000 1110011 | |
841 | hinval_vvma 0010011 ..... ..... 000 00000 1110011 @hfence_vvma | |
842 | hinval_gvma 0110011 ..... ..... 000 00000 1110011 @hfence_gvma | |
68d19b58 WL |
843 | |
844 | # *** RV32 Zknd Standard Extension *** | |
845 | aes32dsmi .. 10111 ..... ..... 000 ..... 0110011 @k_aes | |
846 | aes32dsi .. 10101 ..... ..... 000 ..... 0110011 @k_aes | |
9e33e175 WL |
847 | # *** RV64 Zknd Standard Extension *** |
848 | aes64dsm 00 11111 ..... ..... 000 ..... 0110011 @r | |
849 | aes64ds 00 11101 ..... ..... 000 ..... 0110011 @r | |
850 | aes64im 00 11000 00000 ..... 001 ..... 0010011 @r2 | |
68d19b58 WL |
851 | # *** RV32 Zkne Standard Extension *** |
852 | aes32esmi .. 10011 ..... ..... 000 ..... 0110011 @k_aes | |
853 | aes32esi .. 10001 ..... ..... 000 ..... 0110011 @k_aes | |
9e33e175 WL |
854 | # *** RV64 Zkne Standard Extension *** |
855 | aes64es 00 11001 ..... ..... 000 ..... 0110011 @r | |
856 | aes64esm 00 11011 ..... ..... 000 ..... 0110011 @r | |
857 | # *** RV64 Zkne/zknd Standard Extension *** | |
858 | aes64ks2 01 11111 ..... ..... 000 ..... 0110011 @r | |
859 | aes64ks1i 00 11000 1.... ..... 001 ..... 0010011 @i_aes | |
387e5d92 WL |
860 | # *** RV32 Zknh Standard Extension *** |
861 | sha256sig0 00 01000 00010 ..... 001 ..... 0010011 @r2 | |
862 | sha256sig1 00 01000 00011 ..... 001 ..... 0010011 @r2 | |
863 | sha256sum0 00 01000 00000 ..... 001 ..... 0010011 @r2 | |
864 | sha256sum1 00 01000 00001 ..... 001 ..... 0010011 @r2 | |
e9a7ef5d WL |
865 | sha512sum0r 01 01000 ..... ..... 000 ..... 0110011 @r |
866 | sha512sum1r 01 01001 ..... ..... 000 ..... 0110011 @r | |
867 | sha512sig0l 01 01010 ..... ..... 000 ..... 0110011 @r | |
868 | sha512sig0h 01 01110 ..... ..... 000 ..... 0110011 @r | |
869 | sha512sig1l 01 01011 ..... ..... 000 ..... 0110011 @r | |
870 | sha512sig1h 01 01111 ..... ..... 000 ..... 0110011 @r | |
1f7f7b5e WL |
871 | # *** RV64 Zknh Standard Extension *** |
872 | sha512sig0 00 01000 00110 ..... 001 ..... 0010011 @r2 | |
873 | sha512sig1 00 01000 00111 ..... 001 ..... 0010011 @r2 | |
874 | sha512sum0 00 01000 00100 ..... 001 ..... 0010011 @r2 | |
875 | sha512sum1 00 01000 00101 ..... 001 ..... 0010011 @r2 |