Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32-machine-csr-names.s
blobe7a6d9ce718f2c2c1646afd8bd9c344cbfd72710
1 # RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
4 # RUN: | llvm-objdump -d - \
5 # RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
7 ######################################
8 # Machine Trap Setup
9 ######################################
11 # mstatush
12 # name
13 # CHECK-INST: csrrs t1, mstatush, zero
14 # CHECK-ENC: encoding: [0x73,0x23,0x00,0x31]
15 # CHECK-INST-ALIAS: csrr t1, mstatush
16 # uimm12
17 # CHECK-INST: csrrs t2, mstatush, zero
18 # CHECK-ENC: encoding: [0xf3,0x23,0x00,0x31]
19 # CHECK-INST-ALIAS: csrr t2, mstatush
20 # name
21 csrrs t1, mstatush, zero
22 # uimm12
23 csrrs t2, 0x310, zero
25 #########################
26 # Machine Configuration
27 #########################
29 # menvcfgh
30 # name
31 # CHECK-INST: csrrs t1, menvcfgh, zero
32 # CHECK-ENC: encoding: [0x73,0x23,0xa0,0x31]
33 # CHECK-INST-ALIAS: csrr t1, menvcfgh
34 # uimm12
35 # CHECK-INST: csrrs t2, menvcfgh, zero
36 # CHECK-ENC: encoding: [0xf3,0x23,0xa0,0x31]
37 # CHECK-INST-ALIAS: csrr t2, menvcfgh
38 # name
39 csrrs t1, menvcfgh, zero
40 # uimm12
41 csrrs t2, 0x31A, zero
43 # mseccfgh
44 # name
45 # CHECK-INST: csrrs t1, mseccfgh, zero
46 # CHECK-ENC: encoding: [0x73,0x23,0x70,0x75]
47 # CHECK-INST-ALIAS: csrr t1, mseccfgh
48 # uimm12
49 # CHECK-INST: csrrs t2, mseccfgh, zero
50 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0x75]
51 # CHECK-INST-ALIAS: csrr t2, mseccfgh
52 # name
53 csrrs t1, mseccfgh, zero
54 # uimm12
55 csrrs t2, 0x757, zero
57 ######################################
58 # Machine Protection and Translation
59 ######################################
61 # pmpcfg1
62 # name
63 # CHECK-INST: csrrs t1, pmpcfg1, zero
64 # CHECK-ENC: encoding: [0x73,0x23,0x10,0x3a]
65 # CHECK-INST-ALIAS: csrr t1, pmpcfg1
66 # uimm12
67 # CHECK-INST: csrrs t2, pmpcfg1, zero
68 # CHECK-ENC: encoding: [0xf3,0x23,0x10,0x3a]
69 # CHECK-INST-ALIAS: csrr t2, pmpcfg1
70 # name
71 csrrs t1, pmpcfg1, zero
72 # uimm12
73 csrrs t2, 0x3A1, zero
75 # pmpcfg3
76 # name
77 # CHECK-INST: csrrs t1, pmpcfg3, zero
78 # CHECK-ENC: encoding: [0x73,0x23,0x30,0x3a]
79 # CHECK-INST-ALIAS: csrr t1, pmpcfg3
80 # uimm12
81 # CHECK-INST: csrrs t2, pmpcfg3, zero
82 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0x3a]
83 # CHECK-INST-ALIAS: csrr t2, pmpcfg3
84 # name
85 csrrs t1, pmpcfg3, zero
86 # uimm12
87 csrrs t2, 0x3A3, zero
89 # pmpcfg5
90 # name
91 # CHECK-INST: csrrs t1, pmpcfg5, zero
92 # CHECK-ENC: encoding: [0x73,0x23,0x50,0x3a]
93 # CHECK-INST-ALIAS: csrr t1, pmpcfg5
94 # uimm12
95 # CHECK-INST: csrrs t2, pmpcfg5, zero
96 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0x3a]
97 # CHECK-INST-ALIAS: csrr t2, pmpcfg5
98 # name
99 csrrs t1, pmpcfg5, zero
100 # uimm12
101 csrrs t2, 0x3A5, zero
103 # pmpcfg7
104 # name
105 # CHECK-INST: csrrs t1, pmpcfg7, zero
106 # CHECK-ENC: encoding: [0x73,0x23,0x70,0x3a]
107 # CHECK-INST-ALIAS: csrr t1, pmpcfg7
108 # uimm12
109 # CHECK-INST: csrrs t2, pmpcfg7, zero
110 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0x3a]
111 # CHECK-INST-ALIAS: csrr t2, pmpcfg7
112 # name
113 csrrs t1, pmpcfg7, zero
114 # uimm12
115 csrrs t2, 0x3A7, zero
117 # pmpcfg9
118 # name
119 # CHECK-INST: csrrs t1, pmpcfg9, zero
120 # CHECK-ENC: encoding: [0x73,0x23,0x90,0x3a]
121 # CHECK-INST-ALIAS: csrr t1, pmpcfg9
122 # uimm12
123 # CHECK-INST: csrrs t2, pmpcfg9, zero
124 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0x3a]
125 # CHECK-INST-ALIAS: csrr t2, pmpcfg9
126 # name
127 csrrs t1, pmpcfg9, zero
128 # uimm12
129 csrrs t2, 0x3A9, zero
131 # pmpcfg11
132 # name
133 # CHECK-INST: csrrs t1, pmpcfg11, zero
134 # CHECK-ENC: encoding: [0x73,0x23,0xb0,0x3a]
135 # CHECK-INST-ALIAS: csrr t1, pmpcfg11
136 # uimm12
137 # CHECK-INST: csrrs t2, pmpcfg11, zero
138 # CHECK-ENC: encoding: [0xf3,0x23,0xb0,0x3a]
139 # CHECK-INST-ALIAS: csrr t2, pmpcfg11
140 # name
141 csrrs t1, pmpcfg11, zero
142 # uimm12
143 csrrs t2, 0x3AB, zero
145 # pmpcfg13
146 # name
147 # CHECK-INST: csrrs t1, pmpcfg13, zero
148 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0x3a]
149 # CHECK-INST-ALIAS: csrr t1, pmpcfg13
150 # uimm12
151 # CHECK-INST: csrrs t2, pmpcfg13, zero
152 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0x3a]
153 # CHECK-INST-ALIAS: csrr t2, pmpcfg13
154 # name
155 csrrs t1, pmpcfg13, zero
156 # uimm12
157 csrrs t2, 0x3AD, zero
159 # pmpcfg15
160 # name
161 # CHECK-INST: csrrs t1, pmpcfg15, zero
162 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0x3a]
163 # CHECK-INST-ALIAS: csrr t1, pmpcfg15
164 # uimm12
165 # CHECK-INST: csrrs t2, pmpcfg15, zero
166 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0x3a]
167 # CHECK-INST-ALIAS: csrr t2, pmpcfg15
168 # name
169 csrrs t1, pmpcfg15, zero
170 # uimm12
171 csrrs t2, 0x3AF, zero
173 ######################################
174 # Machine Counter and Timers
175 ######################################
176 # mcycleh
177 # name
178 # CHECK-INST: csrrs t1, mcycleh, zero
179 # CHECK-ENC: encoding: [0x73,0x23,0x00,0xb8]
180 # CHECK-INST-ALIAS: csrr t1, mcycleh
181 # uimm12
182 # CHECK-INST: csrrs t2, mcycleh, zero
183 # CHECK-ENC: encoding: [0xf3,0x23,0x00,0xb8]
184 # CHECK-INST-ALIAS: csrr t2, mcycleh
185 csrrs t1, mcycleh, zero
186 # uimm12
187 csrrs t2, 0xB80, zero
189 # minstreth
190 # name
191 # CHECK-INST: csrrs t1, minstreth, zero
192 # CHECK-ENC: encoding: [0x73,0x23,0x20,0xb8]
193 # CHECK-INST-ALIAS: csrr t1, minstreth
194 # uimm12
195 # CHECK-INST: csrrs t2, minstreth, zero
196 # CHECK-ENC: encoding: [0xf3,0x23,0x20,0xb8]
197 # CHECK-INST-ALIAS: csrr t2, minstreth
198 # name
199 csrrs t1, minstreth, zero
200 # uimm12
201 csrrs t2, 0xB82, zero
203 # mhpmcounter3h
204 # name
205 # CHECK-INST: csrrs t1, mhpmcounter3h, zero
206 # CHECK-ENC: encoding: [0x73,0x23,0x30,0xb8]
207 # CHECK-INST-ALIAS: csrr t1, mhpmcounter3h
208 # uimm12
209 # CHECK-INST: csrrs t2, mhpmcounter3h, zero
210 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0xb8]
211 # CHECK-INST-ALIAS: csrr t2, mhpmcounter3h
212 # name
213 csrrs t1, mhpmcounter3h, zero
214 # uimm12
215 csrrs t2, 0xB83, zero
217 # mhpmcounter4h
218 # name
219 # CHECK-INST: csrrs t1, mhpmcounter4h, zero
220 # CHECK-ENC: encoding: [0x73,0x23,0x40,0xb8]
221 # CHECK-INST-ALIAS: csrr t1, mhpmcounter4h
222 # uimm12
223 # CHECK-INST: csrrs t2, mhpmcounter4h, zero
224 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0xb8]
225 # CHECK-INST-ALIAS: csrr t2, mhpmcounter4h
226 # name
227 csrrs t1, mhpmcounter4h, zero
228 # uimm12
229 csrrs t2, 0xB84, zero
231 # mhpmcounter5h
232 # name
233 # CHECK-INST: csrrs t1, mhpmcounter5h, zero
234 # CHECK-ENC: encoding: [0x73,0x23,0x50,0xb8]
235 # CHECK-INST-ALIAS: csrr t1, mhpmcounter5h
236 # uimm12
237 # CHECK-INST: csrrs t2, mhpmcounter5h, zero
238 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0xb8]
239 # CHECK-INST-ALIAS: csrr t2, mhpmcounter5h
240 # name
241 csrrs t1, mhpmcounter5h, zero
242 # uimm12
243 csrrs t2, 0xB85, zero
245 # mhpmcounter6h
246 # name
247 # CHECK-INST: csrrs t1, mhpmcounter6h, zero
248 # CHECK-ENC: encoding: [0x73,0x23,0x60,0xb8]
249 # CHECK-INST-ALIAS: csrr t1, mhpmcounter6h
250 # uimm12
251 # CHECK-INST: csrrs t2, mhpmcounter6h, zero
252 # CHECK-ENC: encoding: [0xf3,0x23,0x60,0xb8]
253 # CHECK-INST-ALIAS: csrr t2, mhpmcounter6h
254 # name
255 csrrs t1, mhpmcounter6h, zero
256 # uimm12
257 csrrs t2, 0xB86, zero
259 # mhpmcounter7h
260 # name
261 # CHECK-INST: csrrs t1, mhpmcounter7h, zero
262 # CHECK-ENC: encoding: [0x73,0x23,0x70,0xb8]
263 # CHECK-INST-ALIAS: csrr t1, mhpmcounter7h
264 # uimm12
265 # CHECK-INST: csrrs t2, mhpmcounter7h, zero
266 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0xb8]
267 # CHECK-INST-ALIAS: csrr t2, mhpmcounter7h
268 # name
269 csrrs t1, mhpmcounter7h, zero
270 # uimm12
271 csrrs t2, 0xB87, zero
273 # mhpmcounter8h
274 # name
275 # CHECK-INST: csrrs t1, mhpmcounter8h, zero
276 # CHECK-ENC: encoding: [0x73,0x23,0x80,0xb8]
277 # CHECK-INST-ALIAS: csrr t1, mhpmcounter8h
278 # uimm12
279 # CHECK-INST: csrrs t2, mhpmcounter8h, zero
280 # CHECK-ENC: encoding: [0xf3,0x23,0x80,0xb8]
281 # CHECK-INST-ALIAS: csrr t2, mhpmcounter8h
282 # name
283 csrrs t1, mhpmcounter8h, zero
284 # uimm12
285 csrrs t2, 0xB88, zero
287 # mhpmcounter9h
288 # name
289 # CHECK-INST: csrrs t1, mhpmcounter9h, zero
290 # CHECK-ENC: encoding: [0x73,0x23,0x90,0xb8]
291 # CHECK-INST-ALIAS: csrr t1, mhpmcounter9h
292 # uimm12
293 # CHECK-INST: csrrs t2, mhpmcounter9h, zero
294 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0xb8]
295 # CHECK-INST-ALIAS: csrr t2, mhpmcounter9h
296 # name
297 csrrs t1, mhpmcounter9h, zero
298 # uimm12
299 csrrs t2, 0xB89, zero
301 # mhpmcounter10h
302 # name
303 # CHECK-INST: csrrs t1, mhpmcounter10h, zero
304 # CHECK-ENC: encoding: [0x73,0x23,0xa0,0xb8]
305 # CHECK-INST-ALIAS: csrr t1, mhpmcounter10h
306 # uimm12
307 # CHECK-INST: csrrs t2, mhpmcounter10h, zero
308 # CHECK-ENC: encoding: [0xf3,0x23,0xa0,0xb8]
309 # CHECK-INST-ALIAS: csrr t2, mhpmcounter10h
310 # name
311 csrrs t1, mhpmcounter10h, zero
312 # uimm12
313 csrrs t2, 0xB8A, zero
315 # mhpmcounter11h
316 # name
317 # CHECK-INST: csrrs t1, mhpmcounter11h, zero
318 # CHECK-ENC: encoding: [0x73,0x23,0xb0,0xb8]
319 # CHECK-INST-ALIAS: csrr t1, mhpmcounter11h
320 # uimm12
321 # CHECK-INST: csrrs t2, mhpmcounter11h, zero
322 # CHECK-ENC: encoding: [0xf3,0x23,0xb0,0xb8]
323 # CHECK-INST-ALIAS: csrr t2, mhpmcounter11h
324 # name
325 csrrs t1, mhpmcounter11h, zero
326 # uimm12
327 csrrs t2, 0xB8B, zero
329 # mhpmcounter12h
330 # name
331 # CHECK-INST: csrrs t1, mhpmcounter12h, zero
332 # CHECK-ENC: encoding: [0x73,0x23,0xc0,0xb8]
333 # CHECK-INST-ALIAS: csrr t1, mhpmcounter12h
334 # uimm12
335 # CHECK-INST: csrrs t2, mhpmcounter12h, zero
336 # CHECK-ENC: encoding: [0xf3,0x23,0xc0,0xb8]
337 # CHECK-INST-ALIAS: csrr t2, mhpmcounter12h
338 # name
339 csrrs t1, mhpmcounter12h, zero
340 # uimm12
341 csrrs t2, 0xB8C, zero
343 # mhpmcounter13h
344 # name
345 # CHECK-INST: csrrs t1, mhpmcounter13h, zero
346 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0xb8]
347 # CHECK-INST-ALIAS: csrr t1, mhpmcounter13h
348 # uimm12
349 # CHECK-INST: csrrs t2, mhpmcounter13h, zero
350 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0xb8]
351 # CHECK-INST-ALIAS: csrr t2, mhpmcounter13h
352 # name
353 csrrs t1, mhpmcounter13h, zero
354 # uimm12
355 csrrs t2, 0xB8D, zero
357 # mhpmcounter14h
358 # name
359 # CHECK-INST: csrrs t1, mhpmcounter14h, zero
360 # CHECK-ENC: encoding: [0x73,0x23,0xe0,0xb8]
361 # CHECK-INST-ALIAS: csrr t1, mhpmcounter14h
362 # uimm12
363 # CHECK-INST: csrrs t2, mhpmcounter14h, zero
364 # CHECK-ENC: encoding: [0xf3,0x23,0xe0,0xb8]
365 # CHECK-INST-ALIAS: csrr t2, mhpmcounter14h
366 # name
367 csrrs t1, mhpmcounter14h, zero
368 # uimm12
369 csrrs t2, 0xB8E, zero
371 # mhpmcounter15h
372 # name
373 # CHECK-INST: csrrs t1, mhpmcounter15h, zero
374 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0xb8]
375 # CHECK-INST-ALIAS: csrr t1, mhpmcounter15h
376 # uimm12
377 # CHECK-INST: csrrs t2, mhpmcounter15h, zero
378 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0xb8]
379 # CHECK-INST-ALIAS: csrr t2, mhpmcounter15h
380 # name
381 csrrs t1, mhpmcounter15h, zero
382 # uimm12
383 csrrs t2, 0xB8F, zero
385 # mhpmcounter16h
386 # name
387 # CHECK-INST: csrrs t1, mhpmcounter16h, zero
388 # CHECK-ENC: encoding: [0x73,0x23,0x00,0xb9]
389 # CHECK-INST-ALIAS: csrr t1, mhpmcounter16h
390 # uimm12
391 # CHECK-INST: csrrs t2, mhpmcounter16h, zero
392 # CHECK-ENC: encoding: [0xf3,0x23,0x00,0xb9]
393 # CHECK-INST-ALIAS: csrr t2, mhpmcounter16h
394 # name
395 csrrs t1, mhpmcounter16h, zero
396 # uimm12
397 csrrs t2, 0xB90, zero
399 # mhpmcounter17h
400 # name
401 # CHECK-INST: csrrs t1, mhpmcounter17h, zero
402 # CHECK-ENC: encoding: [0x73,0x23,0x10,0xb9]
403 # CHECK-INST-ALIAS: csrr t1, mhpmcounter17h
404 # uimm12
405 # CHECK-INST: csrrs t2, mhpmcounter17h, zero
406 # CHECK-ENC: encoding: [0xf3,0x23,0x10,0xb9]
407 # CHECK-INST-ALIAS: csrr t2, mhpmcounter17h
408 # name
409 csrrs t1, mhpmcounter17h, zero
410 # uimm12
411 csrrs t2, 0xB91, zero
413 # mhpmcounter18h
414 # name
415 # CHECK-INST: csrrs t1, mhpmcounter18h, zero
416 # CHECK-ENC: encoding: [0x73,0x23,0x20,0xb9]
417 # CHECK-INST-ALIAS: csrr t1, mhpmcounter18h
418 # uimm12
419 # CHECK-INST: csrrs t2, mhpmcounter18h, zero
420 # CHECK-ENC: encoding: [0xf3,0x23,0x20,0xb9]
421 # CHECK-INST-ALIAS: csrr t2, mhpmcounter18h
422 # name
423 csrrs t1, mhpmcounter18h, zero
424 # uimm12
425 csrrs t2, 0xB92, zero
427 # mhpmcounter19h
428 # name
429 # CHECK-INST: csrrs t1, mhpmcounter19h, zero
430 # CHECK-ENC: encoding: [0x73,0x23,0x30,0xb9]
431 # CHECK-INST-ALIAS: csrr t1, mhpmcounter19h
432 # uimm12
433 # CHECK-INST: csrrs t2, mhpmcounter19h, zero
434 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0xb9]
435 # CHECK-INST-ALIAS: csrr t2, mhpmcounter19h
436 # name
437 csrrs t1, mhpmcounter19h, zero
438 # uimm12
439 csrrs t2, 0xB93, zero
441 # mhpmcounter20h
442 # name
443 # CHECK-INST: csrrs t1, mhpmcounter20h, zero
444 # CHECK-ENC: encoding: [0x73,0x23,0x40,0xb9]
445 # CHECK-INST-ALIAS: csrr t1, mhpmcounter20h
446 # uimm12
447 # CHECK-INST: csrrs t2, mhpmcounter20h, zero
448 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0xb9]
449 # CHECK-INST-ALIAS: csrr t2, mhpmcounter20h
450 # name
451 csrrs t1, mhpmcounter20h, zero
452 # uimm12
453 csrrs t2, 0xB94, zero
455 # mhpmcounter21h
456 # name
457 # CHECK-INST: csrrs t1, mhpmcounter21h, zero
458 # CHECK-ENC: encoding: [0x73,0x23,0x50,0xb9]
459 # CHECK-INST-ALIAS: csrr t1, mhpmcounter21h
460 # uimm12
461 # CHECK-INST: csrrs t2, mhpmcounter21h, zero
462 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0xb9]
463 # CHECK-INST-ALIAS: csrr t2, mhpmcounter21h
464 # name
465 csrrs t1, mhpmcounter21h, zero
466 # uimm12
467 csrrs t2, 0xB95, zero
469 # mhpmcounter22h
470 # name
471 # CHECK-INST: csrrs t1, mhpmcounter22h, zero
472 # CHECK-ENC: encoding: [0x73,0x23,0x60,0xb9]
473 # CHECK-INST-ALIAS: csrr t1, mhpmcounter22h
474 # uimm12
475 # CHECK-INST: csrrs t2, mhpmcounter22h, zero
476 # CHECK-ENC: encoding: [0xf3,0x23,0x60,0xb9]
477 # CHECK-INST-ALIAS: csrr t2, mhpmcounter22h
478 # name
479 csrrs t1, mhpmcounter22h, zero
480 # uimm12
481 csrrs t2, 0xB96, zero
483 # mhpmcounter23h
484 # name
485 # CHECK-INST: csrrs t1, mhpmcounter23h, zero
486 # CHECK-ENC: encoding: [0x73,0x23,0x70,0xb9]
487 # CHECK-INST-ALIAS: csrr t1, mhpmcounter23h
488 # uimm12
489 # CHECK-INST: csrrs t2, mhpmcounter23h, zero
490 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0xb9]
491 # CHECK-INST-ALIAS: csrr t2, mhpmcounter23h
492 # name
493 csrrs t1, mhpmcounter23h, zero
494 # uimm12
495 csrrs t2, 0xB97, zero
497 # mhpmcounter24h
498 # name
499 # CHECK-INST: csrrs t1, mhpmcounter24h, zero
500 # CHECK-ENC: encoding: [0x73,0x23,0x80,0xb9]
501 # CHECK-INST-ALIAS: csrr t1, mhpmcounter24h
502 # uimm12
503 # CHECK-INST: csrrs t2, mhpmcounter24h, zero
504 # CHECK-ENC: encoding: [0xf3,0x23,0x80,0xb9]
505 # CHECK-INST-ALIAS: csrr t2, mhpmcounter24h
506 # name
507 csrrs t1, mhpmcounter24h, zero
508 # uimm12
509 csrrs t2, 0xB98, zero
511 # mhpmcounter25h
512 # name
513 # CHECK-INST: csrrs t1, mhpmcounter25h, zero
514 # CHECK-ENC: encoding: [0x73,0x23,0x90,0xb9]
515 # CHECK-INST-ALIAS: csrr t1, mhpmcounter25h
516 # uimm12
517 # CHECK-INST: csrrs t2, mhpmcounter25h, zero
518 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0xb9]
519 # CHECK-INST-ALIAS: csrr t2, mhpmcounter25h
520 # name
521 csrrs t1, mhpmcounter25h, zero
522 # uimm12
523 csrrs t2, 0xB99, zero
525 # mhpmcounter26h
526 # name
527 # CHECK-INST: csrrs t1, mhpmcounter26h, zero
528 # CHECK-ENC: encoding: [0x73,0x23,0xa0,0xb9]
529 # CHECK-INST-ALIAS: csrr t1, mhpmcounter26h
530 # uimm12
531 # CHECK-INST: csrrs t2, mhpmcounter26h, zero
532 # CHECK-ENC: encoding: [0xf3,0x23,0xa0,0xb9]
533 # CHECK-INST-ALIAS: csrr t2, mhpmcounter26h
534 # name
535 csrrs t1, mhpmcounter26h, zero
536 # uimm12
537 csrrs t2, 0xB9A, zero
539 # mhpmcounter27h
540 # name
541 # CHECK-INST: csrrs t1, mhpmcounter27h, zero
542 # CHECK-ENC: encoding: [0x73,0x23,0xb0,0xb9]
543 # CHECK-INST-ALIAS: csrr t1, mhpmcounter27h
544 # uimm12
545 # CHECK-INST: csrrs t2, mhpmcounter27h, zero
546 # CHECK-ENC: encoding: [0xf3,0x23,0xb0,0xb9]
547 # CHECK-INST-ALIAS: csrr t2, mhpmcounter27h
548 # name
549 csrrs t1, mhpmcounter27h, zero
550 # uimm12
551 csrrs t2, 0xB9B, zero
553 # mhpmcounter28h
554 # name
555 # CHECK-INST: csrrs t1, mhpmcounter28h, zero
556 # CHECK-ENC: encoding: [0x73,0x23,0xc0,0xb9]
557 # CHECK-INST-ALIAS: csrr t1, mhpmcounter28h
558 # uimm12
559 # CHECK-INST: csrrs t2, mhpmcounter28h, zero
560 # CHECK-ENC: encoding: [0xf3,0x23,0xc0,0xb9]
561 # CHECK-INST-ALIAS: csrr t2, mhpmcounter28h
562 # name
563 csrrs t1, mhpmcounter28h, zero
564 # uimm12
565 csrrs t2, 0xB9C, zero
567 # mhpmcounter29h
568 # name
569 # CHECK-INST: csrrs t1, mhpmcounter29h, zero
570 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0xb9]
571 # CHECK-INST-ALIAS: csrr t1, mhpmcounter29h
572 # uimm12
573 # CHECK-INST: csrrs t2, mhpmcounter29h, zero
574 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0xb9]
575 # CHECK-INST-ALIAS: csrr t2, mhpmcounter29h
576 # name
577 csrrs t1, mhpmcounter29h, zero
578 # uimm12
579 csrrs t2, 0xB9D, zero
581 # mhpmcounter30h
582 # name
583 # CHECK-INST: csrrs t1, mhpmcounter30h, zero
584 # CHECK-ENC: encoding: [0x73,0x23,0xe0,0xb9]
585 # CHECK-INST-ALIAS: csrr t1, mhpmcounter30h
586 # uimm12
587 # CHECK-INST: csrrs t2, mhpmcounter30h, zero
588 # CHECK-ENC: encoding: [0xf3,0x23,0xe0,0xb9]
589 # CHECK-INST-ALIAS: csrr t2, mhpmcounter30h
590 # name
591 csrrs t1, mhpmcounter30h, zero
592 # uimm12
593 csrrs t2, 0xB9E, zero
595 # mhpmcounter31h
596 # name
597 # CHECK-INST: csrrs t1, mhpmcounter31h, zero
598 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0xb9]
599 # CHECK-INST-ALIAS: csrr t1, mhpmcounter31h
600 # uimm12
601 # CHECK-INST: csrrs t2, mhpmcounter31h, zero
602 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0xb9]
603 # CHECK-INST-ALIAS: csrr t2, mhpmcounter31h
604 # name
605 csrrs t1, mhpmcounter31h, zero
606 # uimm12
607 csrrs t2, 0xB9F, zero
609 ######################################
610 # Machine Counter Setup
611 ######################################
613 # mhpmevent3h
614 # name
615 # CHECK-INST: csrrs t1, mhpmevent3h, zero
616 # CHECK-ENC: encoding: [0x73,0x23,0x30,0x72]
617 # CHECK-INST-ALIAS: csrr t1, mhpmevent3h
618 # uimm12
619 # CHECK-INST: csrrs t2, mhpmevent3h, zero
620 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0x72]
621 # CHECK-INST-ALIAS: csrr t2, mhpmevent3h
622 # name
623 csrrs t1, mhpmevent3h, zero
624 # uimm12
625 csrrs t2, 0x723, zero
627 # mhpmevent4h
628 # name
629 # CHECK-INST: csrrs t1, mhpmevent4h, zero
630 # CHECK-ENC: encoding: [0x73,0x23,0x40,0x72]
631 # CHECK-INST-ALIAS: csrr t1, mhpmevent4h
632 # uimm12
633 # CHECK-INST: csrrs t2, mhpmevent4h, zero
634 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0x72]
635 # CHECK-INST-ALIAS: csrr t2, mhpmevent4h
636 # name
637 csrrs t1, mhpmevent4h, zero
638 # uimm12
639 csrrs t2, 0x724, zero
641 # mhpmevent5h
642 # name
643 # CHECK-INST: csrrs t1, mhpmevent5h, zero
644 # CHECK-ENC: encoding: [0x73,0x23,0x50,0x72]
645 # CHECK-INST-ALIAS: csrr t1, mhpmevent5h
646 # uimm12
647 # CHECK-INST: csrrs t2, mhpmevent5h, zero
648 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0x72]
649 # CHECK-INST-ALIAS: csrr t2, mhpmevent5h
650 # name
651 csrrs t1, mhpmevent5h, zero
652 # uimm12
653 csrrs t2, 0x725, zero
655 # mhpmevent6h
656 # name
657 # CHECK-INST: csrrs t1, mhpmevent6h, zero
658 # CHECK-ENC: encoding: [0x73,0x23,0x60,0x72]
659 # CHECK-INST-ALIAS: csrr t1, mhpmevent6h
660 # uimm12
661 # CHECK-INST: csrrs t2, mhpmevent6h, zero
662 # CHECK-ENC: encoding: [0xf3,0x23,0x60,0x72]
663 # CHECK-INST-ALIAS: csrr t2, mhpmevent6h
664 # name
665 csrrs t1, mhpmevent6h, zero
666 # uimm12
667 csrrs t2, 0x726, zero
669 # mhpmevent7h
670 # name
671 # CHECK-INST: csrrs t1, mhpmevent7h, zero
672 # CHECK-ENC: encoding: [0x73,0x23,0x70,0x72]
673 # CHECK-INST-ALIAS: csrr t1, mhpmevent7h
674 # uimm12
675 # CHECK-INST: csrrs t2, mhpmevent7h, zero
676 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0x72]
677 # CHECK-INST-ALIAS: csrr t2, mhpmevent7h
678 # name
679 csrrs t1, mhpmevent7h, zero
680 # uimm12
681 csrrs t2, 0x727, zero
683 # mhpmevent8h
684 # name
685 # CHECK-INST: csrrs t1, mhpmevent8h, zero
686 # CHECK-ENC: encoding: [0x73,0x23,0x80,0x72]
687 # CHECK-INST-ALIAS: csrr t1, mhpmevent8h
688 # uimm12
689 # CHECK-INST: csrrs t2, mhpmevent8h, zero
690 # CHECK-ENC: encoding: [0xf3,0x23,0x80,0x72]
691 # CHECK-INST-ALIAS: csrr t2, mhpmevent8h
692 # name
693 csrrs t1, mhpmevent8h, zero
694 # uimm12
695 csrrs t2, 0x728, zero
697 # mhpmevent9h
698 # name
699 # CHECK-INST: csrrs t1, mhpmevent9h, zero
700 # CHECK-ENC: encoding: [0x73,0x23,0x90,0x72]
701 # CHECK-INST-ALIAS: csrr t1, mhpmevent9h
702 # uimm12
703 # CHECK-INST: csrrs t2, mhpmevent9h, zero
704 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0x72]
705 # CHECK-INST-ALIAS: csrr t2, mhpmevent9h
706 # name
707 csrrs t1, mhpmevent9h, zero
708 # uimm12
709 csrrs t2, 0x729, zero
711 # mhpmevent10h
712 # name
713 # CHECK-INST: csrrs t1, mhpmevent10h, zero
714 # CHECK-ENC: encoding: [0x73,0x23,0xa0,0x72]
715 # CHECK-INST-ALIAS: csrr t1, mhpmevent10h
716 # uimm12
717 # CHECK-INST: csrrs t2, mhpmevent10h, zero
718 # CHECK-ENC: encoding: [0xf3,0x23,0xa0,0x72]
719 # CHECK-INST-ALIAS: csrr t2, mhpmevent10h
720 # name
721 csrrs t1, mhpmevent10h, zero
722 # uimm12
723 csrrs t2, 0x72a, zero
725 # mhpmevent11h
726 # name
727 # CHECK-INST: csrrs t1, mhpmevent11h, zero
728 # CHECK-ENC: encoding: [0x73,0x23,0xb0,0x72]
729 # CHECK-INST-ALIAS: csrr t1, mhpmevent11h
730 # uimm12
731 # CHECK-INST: csrrs t2, mhpmevent11h, zero
732 # CHECK-ENC: encoding: [0xf3,0x23,0xb0,0x72]
733 # CHECK-INST-ALIAS: csrr t2, mhpmevent11h
734 # name
735 csrrs t1, mhpmevent11h, zero
736 # uimm12
737 csrrs t2, 0x72B, zero
739 # mhpmevent12h
740 # name
741 # CHECK-INST: csrrs t1, mhpmevent12h, zero
742 # CHECK-ENC: encoding: [0x73,0x23,0xc0,0x72]
743 # CHECK-INST-ALIAS: csrr t1, mhpmevent12h
744 # uimm12
745 # CHECK-INST: csrrs t2, mhpmevent12h, zero
746 # CHECK-ENC: encoding: [0xf3,0x23,0xc0,0x72]
747 # CHECK-INST-ALIAS: csrr t2, mhpmevent12h
748 # name
749 csrrs t1, mhpmevent12h, zero
750 # uimm12
751 csrrs t2, 0x72C, zero
753 # mhpmevent13h
754 # name
755 # CHECK-INST: csrrs t1, mhpmevent13h, zero
756 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0x72]
757 # CHECK-INST-ALIAS: csrr t1, mhpmevent13h
758 # uimm12
759 # CHECK-INST: csrrs t2, mhpmevent13h, zero
760 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0x72]
761 # CHECK-INST-ALIAS: csrr t2, mhpmevent13h
762 # name
763 csrrs t1, mhpmevent13h, zero
764 # uimm12
765 csrrs t2, 0x72D, zero
767 # mhpmevent14h
768 # name
769 # CHECK-INST: csrrs t1, mhpmevent14h, zero
770 # CHECK-ENC: encoding: [0x73,0x23,0xe0,0x72]
771 # CHECK-INST-ALIAS: csrr t1, mhpmevent14h
772 # uimm12
773 # CHECK-INST: csrrs t2, mhpmevent14h, zero
774 # CHECK-ENC: encoding: [0xf3,0x23,0xe0,0x72]
775 # CHECK-INST-ALIAS: csrr t2, mhpmevent14h
776 # name
777 csrrs t1, mhpmevent14h, zero
778 # uimm12
779 csrrs t2, 0x72E, zero
781 # mhpmevent15h
782 # name
783 # CHECK-INST: csrrs t1, mhpmevent15h, zero
784 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0x72]
785 # CHECK-INST-ALIAS: csrr t1, mhpmevent15h
786 # uimm12
787 # CHECK-INST: csrrs t2, mhpmevent15h, zero
788 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0x72]
789 # CHECK-INST-ALIAS: csrr t2, mhpmevent15h
790 # name
791 csrrs t1, mhpmevent15h, zero
792 # uimm12
793 csrrs t2, 0x72F, zero
795 # mhpmevent16h
796 # name
797 # CHECK-INST: csrrs t1, mhpmevent16h, zero
798 # CHECK-ENC: encoding: [0x73,0x23,0x00,0x73]
799 # CHECK-INST-ALIAS: csrr t1, mhpmevent16h
800 # uimm12
801 # CHECK-INST: csrrs t2, mhpmevent16h, zero
802 # CHECK-ENC: encoding: [0xf3,0x23,0x00,0x73]
803 # CHECK-INST-ALIAS: csrr t2, mhpmevent16h
804 # name
805 csrrs t1, mhpmevent16h, zero
806 # uimm12
807 csrrs t2, 0x730, zero
809 # mhpmevent17h
810 # name
811 # CHECK-INST: csrrs t1, mhpmevent17h, zero
812 # CHECK-ENC: encoding: [0x73,0x23,0x10,0x73]
813 # CHECK-INST-ALIAS: csrr t1, mhpmevent17h
814 # uimm12
815 # CHECK-INST: csrrs t2, mhpmevent17h, zero
816 # CHECK-ENC: encoding: [0xf3,0x23,0x10,0x73]
817 # CHECK-INST-ALIAS: csrr t2, mhpmevent17h
818 # name
819 csrrs t1, mhpmevent17h, zero
820 # uimm12
821 csrrs t2, 0x731, zero
823 # mhpmevent18h
824 # name
825 # CHECK-INST: csrrs t1, mhpmevent18h, zero
826 # CHECK-ENC: encoding: [0x73,0x23,0x20,0x73]
827 # CHECK-INST-ALIAS: csrr t1, mhpmevent18h
828 # uimm12
829 # CHECK-INST: csrrs t2, mhpmevent18h, zero
830 # CHECK-ENC: encoding: [0xf3,0x23,0x20,0x73]
831 # CHECK-INST-ALIAS: csrr t2, mhpmevent18h
832 # name
833 csrrs t1, mhpmevent18h, zero
834 # uimm12
835 csrrs t2, 0x732, zero
837 # mhpmevent19h
838 # name
839 # CHECK-INST: csrrs t1, mhpmevent19h, zero
840 # CHECK-ENC: encoding: [0x73,0x23,0x30,0x73]
841 # CHECK-INST-ALIAS: csrr t1, mhpmevent19h
842 # uimm12
843 # CHECK-INST: csrrs t2, mhpmevent19h, zero
844 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0x73]
845 # CHECK-INST-ALIAS: csrr t2, mhpmevent19h
846 # name
847 csrrs t1, mhpmevent19h, zero
848 # uimm12
849 csrrs t2, 0x733, zero
851 # mhpmevent20h
852 # name
853 # CHECK-INST: csrrs t1, mhpmevent20h, zero
854 # CHECK-ENC: encoding: [0x73,0x23,0x40,0x73]
855 # CHECK-INST-ALIAS: csrr t1, mhpmevent20h
856 # uimm12
857 # CHECK-INST: csrrs t2, mhpmevent20h, zero
858 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0x73]
859 # CHECK-INST-ALIAS: csrr t2, mhpmevent20h
860 # name
861 csrrs t1, mhpmevent20h, zero
862 # uimm12
863 csrrs t2, 0x734, zero
865 # mhpmevent21h
866 # name
867 # CHECK-INST: csrrs t1, mhpmevent21h, zero
868 # CHECK-ENC: encoding: [0x73,0x23,0x50,0x73]
869 # CHECK-INST-ALIAS: csrr t1, mhpmevent21h
870 # uimm12
871 # CHECK-INST: csrrs t2, mhpmevent21h, zero
872 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0x73]
873 # CHECK-INST-ALIAS: csrr t2, mhpmevent21h
874 # name
875 csrrs t1, mhpmevent21h, zero
876 # uimm12
877 csrrs t2, 0x735, zero
879 # mhpmevent22h
880 # name
881 # CHECK-INST: csrrs t1, mhpmevent22h, zero
882 # CHECK-ENC: encoding: [0x73,0x23,0x60,0x73]
883 # CHECK-INST-ALIAS: csrr t1, mhpmevent22h
884 # uimm12
885 # CHECK-INST: csrrs t2, mhpmevent22h, zero
886 # CHECK-ENC: encoding: [0xf3,0x23,0x60,0x73]
887 # CHECK-INST-ALIAS: csrr t2, mhpmevent22h
888 # name
889 csrrs t1, mhpmevent22h, zero
890 # uimm12
891 csrrs t2, 0x736, zero
893 # mhpmevent23h
894 # name
895 # CHECK-INST: csrrs t1, mhpmevent23h, zero
896 # CHECK-ENC: encoding: [0x73,0x23,0x70,0x73]
897 # CHECK-INST-ALIAS: csrr t1, mhpmevent23h
898 # uimm12
899 # CHECK-INST: csrrs t2, mhpmevent23h, zero
900 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0x73]
901 # CHECK-INST-ALIAS: csrr t2, mhpmevent23h
902 # name
903 csrrs t1, mhpmevent23h, zero
904 # uimm12
905 csrrs t2, 0x737, zero
907 # mhpmevent24h
908 # name
909 # CHECK-INST: csrrs t1, mhpmevent24h, zero
910 # CHECK-ENC: encoding: [0x73,0x23,0x80,0x73]
911 # CHECK-INST-ALIAS: csrr t1, mhpmevent24h
912 # uimm12
913 # CHECK-INST: csrrs t2, mhpmevent24h, zero
914 # CHECK-ENC: encoding: [0xf3,0x23,0x80,0x73]
915 # CHECK-INST-ALIAS: csrr t2, mhpmevent24h
916 # name
917 csrrs t1, mhpmevent24h, zero
918 # uimm12
919 csrrs t2, 0x738, zero
921 # mhpmevent25h
922 # name
923 # CHECK-INST: csrrs t1, mhpmevent25h, zero
924 # CHECK-ENC: encoding: [0x73,0x23,0x90,0x73]
925 # CHECK-INST-ALIAS: csrr t1, mhpmevent25h
926 # uimm12
927 # CHECK-INST: csrrs t2, mhpmevent25h, zero
928 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0x73]
929 # CHECK-INST-ALIAS: csrr t2, mhpmevent25h
930 # name
931 csrrs t1, mhpmevent25h, zero
932 # uimm12
933 csrrs t2, 0x739, zero
935 # mhpmevent26h
936 # name
937 # CHECK-INST: csrrs t1, mhpmevent26h, zero
938 # CHECK-ENC: encoding: [0x73,0x23,0xa0,0x73]
939 # CHECK-INST-ALIAS: csrr t1, mhpmevent26h
940 # uimm12
941 # CHECK-INST: csrrs t2, mhpmevent26h, zero
942 # CHECK-ENC: encoding: [0xf3,0x23,0xa0,0x73]
943 # CHECK-INST-ALIAS: csrr t2, mhpmevent26h
944 # name
945 csrrs t1, mhpmevent26h, zero
946 # uimm12
947 csrrs t2, 0x73A, zero
949 # mhpmevent27h
950 # name
951 # CHECK-INST: csrrs t1, mhpmevent27h, zero
952 # CHECK-ENC: encoding: [0x73,0x23,0xb0,0x73]
953 # CHECK-INST-ALIAS: csrr t1, mhpmevent27h
954 # uimm12
955 # CHECK-INST: csrrs t2, mhpmevent27h, zero
956 # CHECK-ENC: encoding: [0xf3,0x23,0xb0,0x73]
957 # CHECK-INST-ALIAS: csrr t2, mhpmevent27h
958 # name
959 csrrs t1, mhpmevent27h, zero
960 # uimm12
961 csrrs t2, 0x73B, zero
963 # mhpmevent28h
964 # name
965 # CHECK-INST: csrrs t1, mhpmevent28h, zero
966 # CHECK-ENC: encoding: [0x73,0x23,0xc0,0x73]
967 # CHECK-INST-ALIAS: csrr t1, mhpmevent28h
968 # uimm12
969 # CHECK-INST: csrrs t2, mhpmevent28h, zero
970 # CHECK-ENC: encoding: [0xf3,0x23,0xc0,0x73]
971 # CHECK-INST-ALIAS: csrr t2, mhpmevent28h
972 # name
973 csrrs t1, mhpmevent28h, zero
974 # uimm12
975 csrrs t2, 0x73C, zero
977 # mhpmevent29h
978 # name
979 # CHECK-INST: csrrs t1, mhpmevent29h, zero
980 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0x73]
981 # CHECK-INST-ALIAS: csrr t1, mhpmevent29h
982 # uimm12
983 # CHECK-INST: csrrs t2, mhpmevent29h, zero
984 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0x73]
985 # CHECK-INST-ALIAS: csrr t2, mhpmevent29h
986 # name
987 csrrs t1, mhpmevent29h, zero
988 # uimm12
989 csrrs t2, 0x73D, zero
991 # mhpmevent30h
992 # name
993 # CHECK-INST: csrrs t1, mhpmevent30h, zero
994 # CHECK-ENC: encoding: [0x73,0x23,0xe0,0x73]
995 # CHECK-INST-ALIAS: csrr t1, mhpmevent30h
996 # uimm12
997 # CHECK-INST: csrrs t2, mhpmevent30h, zero
998 # CHECK-ENC: encoding: [0xf3,0x23,0xe0,0x73]
999 # CHECK-INST-ALIAS: csrr t2, mhpmevent30h
1000 # name
1001 csrrs t1, mhpmevent30h, zero
1002 # uimm12
1003 csrrs t2, 0x73E, zero
1005 # mhpmevent31h
1006 # name
1007 # CHECK-INST: csrrs t1, mhpmevent31h, zero
1008 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0x73]
1009 # CHECK-INST-ALIAS: csrr t1, mhpmevent31h
1010 # uimm12
1011 # CHECK-INST: csrrs t2, mhpmevent31h, zero
1012 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0x73]
1013 # CHECK-INST-ALIAS: csrr t2, mhpmevent31h
1014 # name
1015 csrrs t1, mhpmevent31h, zero
1016 # uimm12
1017 csrrs t2, 0x73F, zero
1019 #########################################
1020 # State Enable Extension (Smstateen)
1021 #########################################
1023 # mstateen0h
1024 # name
1025 # CHECK-INST: csrrs t1, mstateen0h, zero
1026 # CHECK-ENC: encoding: [0x73,0x23,0xc0,0x31]
1027 # CHECK-INST-ALIAS: csrr t1, mstateen0h
1028 # uimm12
1029 # CHECK-INST: csrrs t2, mstateen0h, zero
1030 # CHECK-ENC: encoding: [0xf3,0x23,0xc0,0x31]
1031 # CHECK-INST-ALIAS: csrr t2, mstateen0h
1032 # name
1033 csrrs t1, mstateen0h, zero
1034 # uimm12
1035 csrrs t2, 0x31C, zero
1037 # mstateen1h
1038 # name
1039 # CHECK-INST: csrrs t1, mstateen1h, zero
1040 # CHECK-ENC: encoding: [0x73,0x23,0xd0,0x31]
1041 # CHECK-INST-ALIAS: csrr t1, mstateen1h
1042 # uimm12
1043 # CHECK-INST: csrrs t2, mstateen1h, zero
1044 # CHECK-ENC: encoding: [0xf3,0x23,0xd0,0x31]
1045 # CHECK-INST-ALIAS: csrr t2, mstateen1h
1046 # name
1047 csrrs t1, mstateen1h, zero
1048 # uimm12
1049 csrrs t2, 0x31D, zero
1051 # mstateen2h
1052 # name
1053 # CHECK-INST: csrrs t1, mstateen2h, zero
1054 # CHECK-ENC: encoding: [0x73,0x23,0xe0,0x31]
1055 # CHECK-INST-ALIAS: csrr t1, mstateen2h
1056 # uimm12
1057 # CHECK-INST: csrrs t2, mstateen2h, zero
1058 # CHECK-ENC: encoding: [0xf3,0x23,0xe0,0x31]
1059 # CHECK-INST-ALIAS: csrr t2, mstateen2h
1060 # name
1061 csrrs t1, mstateen2h, zero
1062 # uimm12
1063 csrrs t2, 0x31E, zero
1065 # mstateen3h
1066 # name
1067 # CHECK-INST: csrrs t1, mstateen3h, zero
1068 # CHECK-ENC: encoding: [0x73,0x23,0xf0,0x31]
1069 # CHECK-INST-ALIAS: csrr t1, mstateen3h
1070 # uimm12
1071 # CHECK-INST: csrrs t2, mstateen3h, zero
1072 # CHECK-ENC: encoding: [0xf3,0x23,0xf0,0x31]
1073 # CHECK-INST-ALIAS: csrr t2, mstateen3h
1074 # name
1075 csrrs t1, mstateen3h, zero
1076 # uimm12
1077 csrrs t2, 0x31F, zero
1079 #########################################
1080 # Advanced Interrupt Architecture (Smaia and Ssaia)
1081 #########################################
1083 # midelegh
1084 # name
1085 # CHECK-INST: csrrs t1, midelegh, zero
1086 # CHECK-ENC: encoding: [0x73,0x23,0x30,0x31]
1087 # CHECK-INST-ALIAS: csrr t1, midelegh
1088 # uimm12
1089 # CHECK-INST: csrrs t2, midelegh, zero
1090 # CHECK-ENC: encoding: [0xf3,0x23,0x30,0x31]
1091 # CHECK-INST-ALIAS: csrr t2, midelegh
1092 # name
1093 csrrs t1, midelegh, zero
1094 # uimm12
1095 csrrs t2, 0x313, zero
1097 # mieh
1098 # name
1099 # CHECK-INST: csrrs t1, mieh, zero
1100 # CHECK-ENC: encoding: [0x73,0x23,0x40,0x31]
1101 # CHECK-INST-ALIAS: csrr t1, mieh
1102 # uimm12
1103 # CHECK-INST: csrrs t2, mieh, zero
1104 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0x31]
1105 # CHECK-INST-ALIAS: csrr t2, mieh
1106 # name
1107 csrrs t1, mieh, zero
1108 # uimm12
1109 csrrs t2, 0x314, zero
1111 # mvienh
1112 # name
1113 # CHECK-INST: csrrs t1, mvienh, zero
1114 # CHECK-ENC: encoding: [0x73,0x23,0x80,0x31]
1115 # CHECK-INST-ALIAS: csrr t1, mvienh
1116 # uimm12
1117 # CHECK-INST: csrrs t2, mvienh, zero
1118 # CHECK-ENC: encoding: [0xf3,0x23,0x80,0x31]
1119 # CHECK-INST-ALIAS: csrr t2, mvienh
1120 # name
1121 csrrs t1, mvienh, zero
1122 # uimm12
1123 csrrs t2, 0x318, zero
1125 # mviph
1126 # name
1127 # CHECK-INST: csrrs t1, mviph, zero
1128 # CHECK-ENC: encoding: [0x73,0x23,0x90,0x31]
1129 # CHECK-INST-ALIAS: csrr t1, mviph
1130 # uimm12
1131 # CHECK-INST: csrrs t2, mviph, zero
1132 # CHECK-ENC: encoding: [0xf3,0x23,0x90,0x31]
1133 # CHECK-INST-ALIAS: csrr t2, mviph
1134 # name
1135 csrrs t1, mviph, zero
1136 # uimm12
1137 csrrs t2, 0x319, zero
1139 # miph
1140 # name
1141 # CHECK-INST: csrrs t1, miph, zero
1142 # CHECK-ENC: encoding: [0x73,0x23,0x40,0x35]
1143 # CHECK-INST-ALIAS: csrr t1, miph
1144 # uimm12
1145 # CHECK-INST: csrrs t2, miph, zero
1146 # CHECK-ENC: encoding: [0xf3,0x23,0x40,0x35]
1147 # CHECK-INST-ALIAS: csrr t2, miph
1148 # name
1149 csrrs t1, miph, zero
1150 # uimm12
1151 csrrs t2, 0x354, zero